Hi,
I'm using a plugin called sfEasyGMapPlugin for the PHP symfony
platform. I use this plugin to embed a google map onto a page. The
map has a single marker on it. It seems to take a long time to render
the map on the page about 80% of the time. Sometimes I find I have to
refresh the browser or it will never render. I was wondering if there
is anything I can do to improve performance?
A sample of the script I'm using is below.
Thanks,
Steve
<script type="text/javascript">
//<![CDATA[
google.load("maps", "2");
var map = null;
// Call this function when the page has been loaded
function initialize()
{
if (GBrowserIsCompatible())
{
map = new google.maps.Map2(document.getElementById("map"));
map.setCenter(new google.maps.LatLng(41.6148, -93.7167), 15);
map.enableDoubleClickZoom();
map.addControl(new google.maps.SmallMapControl());
map.addControl(new GMapTypeControl());
marker = new google.maps.Marker(new google.maps.LatLng
(41.6148,-93.7167));google.maps.Event.addListener
(marker,"click",function(){this.openInfoWindowHtml('<b>95KGGO Arena
(Buccaneer Arena)</b><br/>\n7201 Hickman Rd.<br/>\nUrbandale, IA<br/>
\nUnited States')});map.addOverlay(marker);
}
}
google.setOnLoadCallback(initialize);
document.onunload="GUnload()";
//]]>
</script>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---