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, 3 Apr 2012 23:31:42
Topic: MapXT SDK evaluation
See more news »

SDK 1.1.1 API changes for BlackBerry

No replies
jaak
User offline. Last seen 15 hours 37 min ago. Offline
Joined: 06/19/2008

If you upgrade SDK to 1.1.1 then you need following changes in your application code:


1. Change imports from com.nutiteq.wrappers.rimui.* (Image, Graphics, Font) to com.nutiteq.wrappers.*

2. if you use MapFieldTouch Field from BlackBerry sample application, then you need to update it to the new MapFieldTouch from BB sample application package. Then following changes are not needed, these are already done in MapFieldTouch.

3. Instead of deprecated MapComponent use BasicMapComponent. API is same, only there are no default settings (map and cache), so you need to have something like following:

mapComponent = new BasicMapComponent("Nutiteq-Key",
new AppContext(this), 1,1, new WgsPoint(24,59), 5);
mapComponent.setMap(NutiteqStreamedMap.OPENSTREETMAP);
mapComponent.setPanningStrategy(new ThreadDrivenPanning());
mapComponent.setNetworkCache(new CachingChain(new com.nutiteq.cache.Cache[] { new MemoryCache(128 * 1024) }));



4. you may need to replace MapComponent-specific helper methods to BasicMapComponent ones like following:

mapComponent.setZoomLevelIndicator(new DefaultZoomIndicator(0, 1));
mapComponent.setOnScreenZoomControls(new OnScreenZoomControls(Utils
.createImage(OnScreenZoomControls.DEFAULT_ZOOM_IMAGE)));
mapComponent.setCursor(new DefaultCursor(0xFFFF0000));
mapComponent.setDownloadCounter(new NutiteqDownloadCounter());
mapComponent.setDownloadDisplay(new NutiteqDownloadDisplay());



/JaakL