Here's a link to the page with the issue: 
http://bellevue.com/restaurant.php?id=1

It should center on the marker that is farther up and right.

The code that centers it is:

function createMap(ajax) {
        var markers = ajax.responseXML.getElementsByTagName("marker");

        // empty the arrays
        gmarkers = [];
        htmls = [];

        // obtain the attribues of each marker
        var lat = parseFloat(markers[0].getAttribute("lat"));
        var lng = parseFloat(markers[0].getAttribute("lng"));
        var point = new GLatLng(lat, lng);

        map.setCenter(point, 14);

        var html = markers[0].getAttribute("html");
        var label = markers[0].getAttribute("label");
        var tooltip = markers[0].getAttribute("tooltip");
        var num = parseFloat(markers[0].getAttribute("num"));
        //alert(tooltip);
        //create the marker
        var marker = createMarker(point,label,html,tooltip,0,num);
        map.addOverlay(marker);
}

Its odd, if I add an alert() right before I initialize the map,
everything works fine.

For example the alert here:
        if (GBrowserIsCompatible()) {
                //alert("Hi");


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to