This module integrates Leaflet with the Mapbox tile platform, allowing you to use your custom Mapbox map tiles in your Drupal site through Leaflet views. You can configure your Mapbox styles by providing a label, API version, style URL, and access token.
Leaflet integration with MapBox tile platform.
With this module you will be able to use your own MapBox map tiles in your map views through Leaflet module.
Configuration
- Go to the module configuration page: Configuration -> Web Services -> Leaflet MapBox
- Give your map a label.
- Select the API version. API 4 is recommended.
- Copy and paste the Style URL from mapbox.com
- Copy and paste your access token from mapbox.com
- Add a zoom level and description and save.
- You should now be able to use your new mapbox style when creating leaflet views.
MapBox tile creation
- Create an account in MapBox
- Create a map following https://www.mapbox.com/help/getting-started-mapbox-studio-1
- Press Publish to save your map
- To find your map Style URL, see https://www.mapbox.com/help/getting-started-mapbox-studio-1/#styles.
Dependencies
Sponsor
Development is sponsored by Mr. Milu.