POST
|
Thanks. That explains it. Needed to move my kml.getLayers() loop into the "load" event handler function.
... View more
08-17-2016
05:44 AM
|
0
|
0
|
761
|
POST
|
Thanks very much for your patience. I'm obviously missing something but how can you tell? I modify this sandbox example, adding the line 'console.log(kml.getLayers())' below the line 'map.addLayer(kml);', then run it. Looking at the console (in chrome anyway), I just see '[]'.
... View more
08-16-2016
06:55 AM
|
0
|
2
|
761
|
POST
|
Thanks very much for the code snippet. I've tried using ground overlays but also just a simple polygon, Wyoming.kml used here. In both cases, kml.getLayers() returns [], no layers to iterate through.
... View more
08-16-2016
06:15 AM
|
0
|
4
|
761
|
POST
|
I've created a new KMLLayer, added it to my map, and I can see it once I manually pan and zoom to it. I can't seem to figure out how to programmatically zoom to the new layer. I try to change the map extent to the new layer's extent (e.g., kmlLayer.fullExtent) but KMLLayer appears to only implement initialExtent, which is huge.
... View more
08-16-2016
04:57 AM
|
0
|
6
|
2353
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|