Hi all, I am having problem to get polygon load in IE 8 using v2 api, but the polygon is working nicely in firefox and chrome
The error is : Message: Unspecified error. Line: 1118 Char: 65 Code: 0 URI: http://maps.gstatic.com/intl/en_ALL/mapfiles/340c/maps2.api/main.js Message: Object doesn't support this property or method Line: 1 Char: 1 Code: 0 URI: http://maps.gstatic.com/intl/en_ALL/mapfiles/340c/maps2.api/mod_poly.js The code used to create polygon GMap.prototype.Init = function() { var me = this; //init gmap if enabled if (me.options.map_gmap) { if (GBrowserIsCompatible()) { me.gmap = new GMap2(document.getElementById(me.options.gmap_id)); me.polygons = []; me.CreatePolygon(); } } } GMap.prototype.CreatePolygon = function(coords, color){ var me = this; GDownloadUrl("http://localhost:8081/gprs2/genkml.php?genkml.php.kml", function(doc){ var kmlDoc = GXml.parse(doc); var placemarks = kmlDoc.documentElement.getElementsByTagName("Placemark"); for(var i=0; i<placemarks.length; i++){ var latlngs = []; var placemarkname = GXml.value(placemarks[i].getElementsByTagName("name")[0]); var placemarkdesc = GXml.value(placemarks[i].getElementsByTagName("description")[0]); var coords = GXml.value(placemarks[i].getElementsByTagName("coordinates")[0]); var coordsArr = coords.split(" "); for(var j=0; j<coordsArr.length; j++){ var latlng = coordsArr[j].split(","); var lat = latlng[1]; var lng = latlng[0]; latlngs.push(new GLatLng(lat, lng)); } var polygon = new GPolygon(latlngs, '#ff0000', 0, 0.5, '#ff0000', 0.5); me.polygons.push(polygon); me.gmap.addOverlay(polygon); } }); } Sorry if my English is not perfect. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to google-maps-api@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.