Load kml extendeddata into variable with Geoxml3

扶醉桌前 提交于 2019-11-28 12:59:53

In the kmz branch version of geoxml3, the extended data is stored in placemark.vars.val

name: "Alvarães"
percentil: "29.8"
total: "1699"

So, this should work:

    var contentString = '<div class="maptab">'+
        '<h1>'+placemark.name+'</h1>'+
        'fora da escola: '+placemark.vars.val.total+'<br>'
        'percentual: '+placemark.vars.val.percentil+
        '</div>';
    polygonMouseover(placemark.polygon,contentString);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!