silverstripe-mapboxfield/_config/config.yml
2022-06-16 00:38:24 +02:00

32 lines
1.2 KiB
YAML

---
Name: silverstripe-mapboxfield
---
SilverStripe\Core\Injector\Injector:
A2nt\SilverStripeMapboxField\MarkerExtension:
properties:
geocoder: '%$Symbiote\Addressable\MapboxGeocodeService'
Symbiote\Addressable\GeocodeServiceInterface:
class: Symbiote\Addressable\MapboxGeocodeService
SilverStripe\SiteConfig\SiteConfig:
map_type: "google-maps"
extensions:
- A2nt\SilverStripeMapboxField\SiteConfigExtension
A2nt\SilverStripeMapboxField\MapboxField:
access_token: ''
map_style: 'mapbox://styles/mapbox/basic-v9'
api_css_url: 'https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.css'
api_javascript_url: 'https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.js'
geocoder_css_url: 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.css'
geocoder_javascript_url: 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.min.js'
SilverStripe\Admin\LeftAndMain:
extensions:
- 'A2nt\SilverStripeMapboxField\LeftAndMainExtension'
extra_requirements_javascript:
- 'a2nt/silverstripe-mapboxfield:client/dist/js/bundle.js'
extra_requirements_css:
- 'a2nt/silverstripe-mapboxfield:client/dist/styles/bundle.css'