开发者

Retrieving the list of markers loaded from a ggeoxml

I need to get the list of markers after I load them on the map from a kml file with

map.addOverlay(geoxml);

I tried this

 geoxml = new GGeoXml("http://www.mydomain.com/mykmlfile.kml");
      GEvent.addListener( geoxml, "load", fu开发者_如何学运维nction( ) {
        if ( geoxml.loadedCorrectly( )) {

          var markers = geoxml.overlayman.markers
          for (j=0; j<markers.length; j++) {
            alert(geoxmlvar.overlayman.markers[j])
          }
        }
    })

But geoxml.overlayman is not defined. What am I doing wrong?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜