Map API

MGMaps Lib SDK is professional toolkit to develop mobile mapping applications.
Platforms: iPhone, Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

Latest news

Last at Mon, 6 Sep 2010 12:27:06
Topic: Let your feedback ideas flow
See more news »

Nutiteq on Twitter

11 weeks 6 days ago Nutiteq is proud sponsor of StateOfTheMap 2010 #sotm10

Limit boundaries of a stored map

1 reply [Last post]
mixa
User offline. Last seen 6 weeks 5 days 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 is online Online
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