Pass a zoom level to the web widget
Hi,
I embed spotair in a widget, and I overlay on top of this widget a transparent XC map in order to visualize my track over spotair.
The url that I embed is https://www.spotair.mobi/widget/map?lat=${lat}&lng=${lng}&zoom=11&layers=wind,radarmf
I would like to automatically pass a zoom level to spotair which will match as accurately as possible the zoom level of the overlay XC map. Would it be possible for xctrack to publish an openstreetmap zoom level to the web widget so that I can pass the following url instead:
https://www.spotair.mobi/widget/map?lat=${lat}&lng=${lng}&zoom={osm_zoom}&layers=wind,radarmf
There are 20 zoom levels in openstreetmap, all of which come with a distinct m/pixel ratio. It would be fantastic if XCtrack could find the zoom level with the closest match to the one currently displayed by the XC map, so that it can be passed to the embedded spotair map.