DEPRECATED-mapbox-ios-sdk
DEPRECATED-mapbox-ios-sdk copied to clipboard
Avoid scrolling outside offline maps
Hi, I have a question, maybe this is not the best place to ask for it but I have not found a better place.
My question is: I need to avoid user scrolling outside its offline maps, because you can do it freely and get lost easily, not being able to come back to the map. I know -I have read about- i could try the method setConstraintsSouthWest: northEast: but I should know before hand the limits of the map, thing I don´t know. I have an mbtiles file but don´t know the coordinates of its boundaries.
Is there another way to get what I'm looking for?
Thanks in advance
You might try RMTileSource.latitudeLongitudeBoundingBox and then set the map constraints based on the result.