Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Avoid scrolling outside offline maps #585

Open
tgallende opened this issue Feb 13, 2015 · 1 comment
Open

Avoid scrolling outside offline maps #585

tgallende opened this issue Feb 13, 2015 · 1 comment

Comments

@tgallende
Copy link

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

@friedbunny
Copy link
Contributor

You might try RMTileSource.latitudeLongitudeBoundingBox and then set the map constraints based on the result.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants