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

Uudised

Viimane: Thu, 15 Mar 2012 14:51:08
Teema: Vabad töökohad pakkuda
Veel uudiseid »

API changes for 1.1.1 update for Android

No replies
jaak
User offline. Last seen 1 day 22 hours 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