• Hi. I’m using an ACF OpenStreetMap field to set the display of a MapBox map. The problem is that zoom levels differ between OSM (which has 19 levels) and MapBox (with 23). The result is that whatever is set with OSM almost always ends up showing more zoomed-in at the front-end. Obviously trial and error is one way but I thought it would be better if I could get the bounding box of the map in editing mode and use that to set the MapBox map using the fitBounds() method.
    At present the raw data include centre co-ordinates and zoom level only for the overall map view, so I’m interested to know whether it could also include its bounding box. Or perhaps it’s of no interest beyond myself (or there are better ways to tackle my problem)
    Thanks, Jeremy

    • This topic was modified 5 years, 8 months ago by jottevanger.

The topic ‘Get bounding box’ is closed to new replies.