try your kml here http://code.google.com/apis/ajax/playground/#fetch_user%27s_kml
Mapperz http://mapperz.blogspot.com/ On May 15, 11:02 am, mougoye <[email protected]> wrote: > Hi, > > I have add the Google earth Instance in my map. > I display the a kml with GGeoXML and it works in google maps but not > in google earth. It is limitation or is my code wrong? > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8"/ > > <title>Google Earth Plug-in Initialization</title> > <script src="http://maps.google.com/maps? > file=api&v=2&key=ABQIAAAA35W4ad- > XhZW4Icd0bDkl4BQarUOCOm0odpmMMLHFMChwuzcd2RTZha2EtYM2Vq45owWq8q6fSrwWZw" > type="text/javascript"></script> > <script type="text/javascript"> > > function initialize() > { > if (GBrowserIsCompatible()) > { > var map = new GMap2(document.getElementById("map"), > { size: new GSize(640,480) } ); > map.addMapType(G_SATELLITE_3D_MAP); > map.setCenter(new GLatLng(48.114722,-1.6794444), 11); > var mapControl = new GMapTypeControl(); > map.addControl(mapControl); > map.addControl(new GOverviewMapControl()); > map.addControl(new GScaleControl()); > map.addControl(new GLargeMapControl()); > var gx = new GGeoXml("http://......./essai.kml") > map.addOverlay(gx); > } > > } > > </script> > </head> > > <body onload="initialize()" onunload="GUnload()"> > <div id="map" style="width: 640px; height: 320px"></div> > </body> > </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
