Hi! I've a insolit problem with the position of Marker in my custom Google Map....i insert the exactly coordinates of the town that i've search with google maps(i've bring he coordinates from the link that i've created clicking "link") but in my custom map the marker position is incorrect!
my JS script is: <script src="http://maps.google.com/maps? file=api&v=2&key=ABQIAAAAJNx64Yq1osGWqpTtaFAdHBQ9ZAWGy9YzxjHQJXiv4zUef_jOcBSnnBpU5iNrqsvSug_PMf4XsPxDHA" type="text/javascript"></script> </head> <body> <div id="map" style="width:444px; height:400px;"></div> <div id="side_bar"></div> <script type="text/javascript"> //<![CDATA[ if (GBrowserIsCompatible()) { // this variable will collect the html which will eventualkly be placed in the side_bar var side_bar_html = ""; // arrays to hold copies of the markers and html used by the side_bar // because the function closure trick doesnt work there var gmarkers = []; var htmls = []; var i = 0; // A function to create the marker and set up the event window function createMarker(point,name,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); // save the info we need to use later for the side_bar gmarkers[i] = marker; htmls[i] = html; // add a line to the side_bar html side_bar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>'; i++; return marker; } // This function picks up the click and opens the corresponding info window function myclick(i) { gmarkers[i].openInfoWindowHtml(htmls[i]); } // create the map var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(45.9862, 9.2596),12); // add the points //<![CDATA[ var point = new GLatLng(45.839324,9.102173); var marker = createMarker(point,"Como","Como") map.addOverlay(marker); //]]> // put the assembled side_bar_html contents into the side_bar div document.getElementById("side_bar").innerHTML = side_bar_html; } else { alert("Sorry, the Google Maps API is not compatible with this browser"); } //]]> </script> i've try to change resolution of map but nothing to do! help please Thanks (sorry for my bad english) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
