I had more than 600 kml
files to load in a single google map.
Initially I tried with KmlLayer()
, but it didn't work due to the amount of kml
files, so I found GeoXML3
, and it works really fine.
Now I need to retrieve the path's coords for every polygon created with GeoXML3. Here I found the method getPaths()
that seems to be just what I'm looking for, but it doesn't work because now I don't create polygons using the class Polygon
but using the class geoxml3
for (i=0; i < controlli.length; i++)
{
appo = kmlurl + controlli[i].id + ".kml";
appo = appo.replace(" ", '_');
area[controlli[i].id] = new geoXML3.parser({
map: map,
zoom: false,
});
area[controlli[i].id].parse(appo);
//here I would like to do something like: 'area[controlli[i].id].getPaths()'
}
How can I do this?