Thanks for the help guys - Enterprise support takes 1-2 days - so I'm
here while waiting to try and solve it quicker.

Unfortunately I can't give out the URL to our site and the credentials
to log in, however this is what the map loads at start.

----
var map;
var gdir;
var geo;
var keyboardHandler;
//var overlays;
var zoomExtendVehicles;
var mapTypeControl;
var eventMap;

var geo;
function onLoad()
{
        if(GBrowserIsCompatible())
        {

                map = new GMap2(document.getElementById("map"));
                //loadOverlays();

                 geo = new 
GGeoXml('http://mysite.net/stagingarea/agencydata/FL_SP/
KML/beats/overlay.kml');
                 map.addOverlay(geo);

                gdir = new GDirections(null, 
document.getElementById("directions"));
                geo = new GClientGeocoder();
                map.setUIToDefault();

                map.enableContinuousZoom();
                map.enableScrollWheelZoom();
                keyboardHandler = new GKeyboardHandler(map);
                setStartingLatLng(startingAddress,startingLat,startingLng,
startingZoom)


                //When the map is zoomed, we need to update the tooltip 
positions so
they stay near the markers.
                GEvent.addListener(map,"zoomend", function() {
                        if(units)
                        {
                                drawToolTips(true);

                        }
                });

                GEvent.addListener(map, "moveend", function() {
                        if(units)
                        {
                                drawToolTips();
                        }
                });

                GEvent.addListener(gdir, "load", function()
                {
                        if(dPoly) map.removeOverlay(dPoly);
                        dPoly = gdir.getPolyline();
                        map.addOverlay(dPoly);
                });


                GEvent.addListener(gdir,"error", function()
                {
                        var code = gdir.getStatus().code;
                        var reason="Code "+code;
                        if (reasons[code])
                        {
                          reason = "Code "+code +" : "+reasons[code]
                        }
                        alert("Failed to obtain directions, "+reason);
                });

                // map type changed  Do we want to do anything?
                GEvent.addListener(map,"maptypechanged", function() {
                   });

                toggleState("error");
                toggleState("tracking");
                startGeneralUse();


                //overlays = new SVOverlay();
                //map.addControl(overlays);
        }
}

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