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: Tue, 17 May 2011 13:21:59
Teema: Nutimap Eesti kaardi asemele
Veel uudiseid »

Checking screen bounds

1 reply [Last post]
kalipka
User offline. Last seen 1 year 49 weeks ago. Offline
Joined: 02/17/2010

Hi,

I'm working with J2ME and I would like to move automatically the map if the place marker is too close from the screen edges.

My question is : how can i detect that a place marker will be drawn near a screen edge ?

Thanks in advance.

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

General idea would be that the GeoMap has methods wgsToMapPos() and mapPosToWgs() and you can use them with map the current center and your marker coordinates.

/JaakL