Hello, I had a problem when I tried to recreate the GeoXML simple sidebar example<http://www.dyasdesigns.com/geoxml/mtrmtrip.htm> on my own webpage (with the intention of adapting it for use in my own maps)
The GeoXML elements (kml layer, sidebar) do not work at all. All I get is the Map with no features and no sidebar. As you can see from the below code I was careful to insert the full links to both the geoxml.js file and the mtrmtrip.kml file. What am I missing? I am pretty new to all of this so it may be something obvious. I tested this out in Google Playground and got the same results. I am using Google Chrome 17.0.963.78 and Mac OSX 10.6.8. I have had the same problems in other browsers/OS. Hope someone can help. Cheers, Tom <!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" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps EGeo Poly Encoded Example</title> <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAA071y0mO92rLVSbty2lVFnRQ0Vg27BHuPatHpngQfLAOCih4veBRVyoaif5LsEPRF1DkIL8elfJFRdg" type="text/javascript"></script> <script src="http://www.dyasdesigns.com/geoxml/geoxml.js" type="text/javascript"></script> </head> <body onload="initMap()" onunload="GUnload()"> <script type="text/javascript"> //<![CDATA[ var gml, mmap; function initMap() { mmap=new GMap2(document.getElementById("map"),{draggableCursor: 'crosshair', draggingCursor: 'move'}); mmap.setCenter(new GLatLng(0,0),2); mmap.addControl(new GLargeMapControl()); mmap.addControl(new GMapTypeControl()); mmap.enableScrollWheelZoom(); mmap.enableDoubleClickZoom(); mmap.enableContinuousZoom(); gml = new GeoXml("gml", mmap, "http://www.dyasdesigns.com/geoxml/mtrmtrip.kml", {sidebarid:"the_side_bar",iwwidth:250 }); gml.parse(); } //]]> </script> <h2>Parsed KML</h2> <table border=1> <tr> <td> <div id="map" style="width: 550px; height: 750px; border: 5px solid #ad2031;"></div> </td> <td valign="top" > <div id="the_side_bar" style="height:750px;overflow:auto;white-space:nowrap"></div> </td> </tr> </table> <a href="http://www.dyasdesigns.com/geoxml">More GeoXML</a> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api/-/ck95OlyRFVgJ. 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.
