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 »

Convert pixel on latitude longitude

1 reply [Last post]
Nomalys
User offline. Last seen 28 weeks 6 days ago. Offline
Joined: 08/17/2011

Hello,

I want to know if there is a way to convert a pixel in latitude and longitude.
I would make this in order to convert the height and the width of my map to have the delat lat and the delta longitude for each one.

Thanks.

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

Maybe you can use something like following. This gives coordinates for a clicked point x,y.

MapPos placePoint=mapComponent.getInternalMiddlePoint().copy();
placePoint.setX(placePoint.getX()-mapComponent.getWidth()/2+x);
placePoint.setY(placePoint.getY()-mapComponent.getHeight()/2+y);
WgsPoint p=mapComponent.getMap().mapPosToWgs(placePoint).toWgsPoint();

/JaakL