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 »

Multiple maps in app

2 replies [Last post]
thong
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 08/11/2010

Hi, in my application I would like to have two maps displayed on different tabs. (One tab will show a route, while the other tab displays various markers.)

Is it possible to use two different MapView instances within the same application?

Alternatively, is it possible to share the MapView between different tabs, but display different overlays in each tab?

thanks!

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

You should use one MapComponent. MapView controls only map size and handles UI (touch/keypress) events, so you can probably have two MapView-s which share same MapComponent. Or just re-use same MapView also.

Basically you should re-configure map (add points or line, set center etc) always when user switches tab. As you have base map already there, then it should be pretty fast and invisible for the user.

/JaakL

thong
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 08/11/2010

ok, thanks!