1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
kmlgeoXMLville = new geoXML3.parser({
map: map,
zoom: false,
afterParse: function (data) {
for (var i = 0; i < data.length; i++) {
data[i].gpolygons[0].setOptions({
fillColor: '#FF0000',
fillOpacity: 0.2,
strokeColor: '#FF0000',
strokeOpacity: 1
});
google.maps.event.addListener(data[i].gpolygons[0], "mouseover", function() {
this.setOptions({
fillColor: '#EEFFFF',
fillOpacity: 0.75,
strokeColor: "#FFFFFF",
zIndex: 1
});
});
}
}
});
kmlgeoXMLville.parse('test.kml'); |