calcul du zoom dans google maps

Nouveau WRInaute
bonjour.
quelle est la formule pour calculer le zoom d'une carte dans google maps connaissant les latitudes et longitudes minimales et extrémales et le nombre de pixels de l'affichage?
merci
 
WRInaute passionné
getBoundsZoomLevel(bounds) Number Returns the zoom level at which the given rectangular region fits in the map view. The zoom level is computed for the currently selected map type. If no map type is selected yet, the first on the list of map types is used.
 
Nouveau WRInaute
moktoipas a dit:
getBoundsZoomLevel(bounds) Number Returns the zoom level at which the given rectangular region fits in the map view. The zoom level is computed for the currently selected map type. If no map type is selected yet, the first on the list of map types is used.
bonjour et merci pour ta réponse. :D Où as-tu trouvé cette doc?
 
Discussions similaires
Haut