Take the 2-minute tour ×

I'm writing an application where user can point a position in a Google Maps map (using Google Maps API). I grab the position by:

google.maps.event.addListener( my_map, 'click', function(mouseEvent){

     var position = mouseEvent.latLng;
     //position = 41.57187486787156, 0.609094047546364

Then, in an another page, I display an image with all marked positions using Google Static Maps using the coordinates grabbed from user marked points:

<img alt="map image" src="http://maps.googleapis.com/maps/api/staticmap?sensor=false&size=550x380&markers=label:A|41.57187486787156, 0.609094047546364">

Google Static Map displays the marker a little to the south.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Static Maps has a precision-limit of 6 decimals for locations, the marker-position will be rounded and set to 41.571875,0.609094

You'll need to round the values inside the dynamic map too to get the same marker-location on both maps.

share|improve this answer
Could you point me where this is documented? –  Raúl Ferràs Jun 13 '12 at 9:31
Thanks! that explains the offset –  Raúl Ferràs Jun 13 '12 at 10:25

Static means "constant--never changing". dynamic is "changing". You can make dynamic changes to a database without having to shutdown the instance and restart for the changes to take effect. However, if you do not update the control file, when you shutdown and startup, the dynamic change is gone--it wasn't permanent. Static sites are meant for those sites that cant be changed or updates regularly. and Dynamic sites are those sites that changes or update regularly.

share|improve this answer
I guess you wanted to answer a totally different question... –  Raúl Ferràs Apr 15 '13 at 8:40

Your Answer


