源码地址:矢量瓦片 (supermap.io)
问题:请问黄色代码部分的API在超图的哪个网址呢?这一部分看不太懂。
map.on('click', function (e) {
map.forEachFeatureAtPixel(e.pixel, function (feature) {
vectorTileStyles.dispatchEvent({type: 'featureSelected',
selectedId: feature.getProperties().id,
layerName: feature.getProperties().layerName
});
return true;
}, {hitTolerance: 5});
vectorLayer.changed();
})