omeka / plugin-Geolocation

Allows administrative users to save geolocation data for an individual item. The plugin generates a Google map containing items with geolocation data and a web page for displaying the map.
http://omeka.org/codex/Plugins/Geolocation
12 stars 20 forks source link

Add support for latest Mapbox API #50

Closed bmckinney closed 5 months ago

bmckinney commented 5 years ago

Enhancement request: support latest mapbox API.

Mapbox Classic

The current classic URL template is: https://api.tiles.mapbox.com/v4/mapbox.emerald/{z}/{x}/{y}.png?access_token=[your_access_key] and supports the following style names:

Current Mapbox

The current mapbox URL template is: https://api.mapbox.com/styles/v1/mapbox/streets-v10/tiles/256/{z}/{x}/{y}?access_token=[your_access_key] and supports the following style names:

(see: https://www.mapbox.com/api-documentation/#styles)

zerocrates commented 5 years ago

We use https://github.com/leaflet-extras/leaflet-providers to run the selection of the various map layers, so the easiest pathway for us to add "new" Mapbox tile support would be to get it added to leaflet-providers...

I assume completely switching to the new style would be a no-go since it would break the currently-working styles, but perhaps there could be a separate "mapbox style" option.

zerocrates commented 5 months ago

This got done back in 2020 and was released in version 3.2.