HI,

i try to use GGeoXml without map.setCenter :

var geoXml;
var map;
var url = "http://maps.google.fr/maps/ms?
ie=UTF8&hl=fr&oe=UTF8&msa=0&msid=115115239782170342035.00045c5d8b68ccf0d0247&output=kml";
var geoXml = new GGeoXml(url, initialize);
function initialize() {
        if (GBrowserIsCompatible()) {
                map = new GMap2(document.getElementById("map_canvas"), geoXml);
                geoXml.gotoDefaultViewport(map);
                map.setUIToDefault();
                map.addOverlay(geoXml);
        }else{
                alert("Sorry !");
        }
}

is it correct ?

An exemple here :

http://www.lesentierhistoriquedetouraine.fr/GGeoXml-without-map.setCenter.php

Thx for your help.

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