【发布时间】:2016-12-13 07:31:01
【问题描述】:
我已使用以下代码读取 KML 文件。如何获取从 kml 文件中提取的样式。我是否正确使用了 getStyle() 函数?
var parser = new ol.format.KML({extractStyles: true});
var testfeat=parser.readFeatures(kmlAsString,{featureProjection:'EPSG:3857' });
for(i=0;i<testfeat.length;i++)
{
console.log(testfeat[i].getStyle()); // What are the functions that use with getStyle()?
}
【问题讨论】:
标签: kml openlayers-3