Bonjour
Voici ma question :
Comment récupérer les coordonnées (latitude et longitude) des quatre coins de l'écran ? J'ai celui du milieu mais je ne sais pas comment obtenir les autres...
Merci à vous
Uploaded with ImageShack.us
Bonjour
Voici ma question :
Comment récupérer les coordonnées (latitude et longitude) des quatre coins de l'écran ? J'ai celui du milieu mais je ne sais pas comment obtenir les autres...
Merci à vous
Uploaded with ImageShack.us
Bonjour,
Tu trouveras ton bonheur ici
http://code.google.com/intl/fr-FR/an...LatitudeSpan()
Tu le déduis à partir du centre :getLatitudeSpan
public int getLatitudeSpan()
The current latitude span (from the top edge to the bottom edge of the map) in decimal degrees multiplied by one million.
Returns:
Latitude span in decimal degrees * 1,000,000.
getLongitudeSpan
public int getLongitudeSpan()
The current longitude span (from the left edge to the right edge of the map) in decimal degrees multiplied by one million.
Returns:
Longitude span in decimal degrees * 1,000,000.
et là tu as tes coordonnéesgetMapCenter
public GeoPoint getMapCenter()
Returns the current center-point position of the map, as a GeoPoint (latitude and longitude).
Returns:
A GeoPoint of the map's center-point.![]()
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager