Geocoding google maps wrong location -


i'm trying put marker in position ( -23.426056, -47.599556 ) in simple map example (http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html) , marker never stay in right place. in google maps 2 markers, red one(that marks street) , green one(an arrow marks right th exact place) in photo http://s4.postimg.org/6ahyt0rm5/ibagen.gif

how can solve this?

if know marker belongs (the coordinates), don't use geocoder, put marker want it. this example google maps api v3 documentation note example in post using google maps api v2, whih deprecated may 19, 2010; , reaches end of life may 19, 2013. new development using version discouraged.

<!doctype html> <html>   <head>     <meta name="viewport" content="initial-scale=1.0, user-scalable=no">     <meta charset="utf-8">     <title>google maps javascript api v3 example: marker simple</title>     <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>     <script>       function initialize() {         var mylatlng = new google.maps.latlng(-23.426056, -47.599556);         var mapoptions = {           zoom: 4,           center: mylatlng,           maptypeid: google.maps.maptypeid.roadmap         }         var map = new google.maps.map(document.getelementbyid('map-canvas'), mapoptions);          var marker = new google.maps.marker({             position: mylatlng,             map: map,             title: 'hello world!'         });       }     </script>   </head>   <body onload="initialize()">     <div id="map-canvas" style="height:400px; width:500px;"></div>   </body> </html> 

Comments