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 »

API changes for 1.1.1 update for Android

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

There are following major changes in Maps SDK version 1.1.1 API:

1. Mandatory: change all imports from package javax.microedition.lcdui.* (there are Image, Graphics and Font classes) to com.nutiteq.wrappers.*


2. Optional: enable new added features via API as following:

// touch-specific enhancements
mapComponent.setTouchClickTolerance(80); // in pixels
mapComponent.setSmoothZoom(true);
mapComponent.setDoubleClickZoomIn(true);
mapComponent.setDualClickZoomOut(true);
mapComponent.setShowOverlaysWhileZooming(true);

// scalebar with customized location
SimpleScaleBar scaleBar = new SimpleScaleBar();
scaleBar.setAlignment(SimpleScaleBar.BOTTOM_LEFT);
scaleBar.setOffset(20, 40); // default is (20,20)
mapComponent.setScaleBar(scaleBar);

/JaakL