Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

Limit boundaries of a stored map

3 replies [Last post]
mixa
User offline. Last seen 1 year 1 week ago. Offline
Joined: 01/13/2010

Hello Jaak,

I use JaredOpenStreetMap to create a map from tiles in jar, and it works OK.

The question is: how to prevent user from going outside the map, where are no tiles? I'd like to keep user only within boundaries of my map. How to archive this?

I could try to reset the boundaries within mapMoved() method, but I'm not sure it's a good approach (as it means another map movement event). What do you suggest then?

Thanks in advance,
Mike

jaak
User offline. Last seen 12 hours 17 min ago. Offline
Joined: 06/19/2008

Currently controlling using mapMoved() method would be probably the best solution. We have thought to have explicit bounds for maps also, but it is not implemented yet.

/JaakL

luke@red-root.com
User offline. Last seen 27 weeks 2 days ago. Offline
Joined: 07/25/2011

Is this still the only method for doing this? is there no way within mapMoved() to stop the drag motion beyond a certain boundary?

jaak
User offline. Last seen 12 hours 17 min ago. Offline
Joined: 06/19/2008

Yes, no changes here. We have handled this kind of small features as customer-requested (and sponsored) developments. It is possible, but not really trivial as it affects also API.

/JaakL