jgpacker / osm-smart-menu

An OpenStreetMap webextension for Firefox and Chrome
GNU General Public License v3.0
56 stars 12 forks source link

Recognize parameters from sites with Mapbox GL (a common map library) #31

Open jgpacker opened 4 years ago

jgpacker commented 4 years ago

Some websites may not show {zoom, latitude, longitude} parameters in the URL or a permalink. If they use Mapbox GL, is it possible to extract these parameters somehow?

Examples:

Bibi56 commented 2 years ago

@jgpacker like for leaflet, you see a <div class="map" id="map"></div> and calls to for instance https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/6/47/21.vector.pbf?sku=... : 6/47/21 is the same as for Leaflet except that: