阅读:3712回复:0
对比 aimap sesuim中 GIS 位置的坐标【parseFloat 并取两位小数】
for (let i = 0;i<activeFeatures.length;i++) {
if( parseFloat(activeFeatures.geometry.coordinates[0].toFixed(2)) == parseFloat(coordinates[0].toFixed(2)) && parseFloat(activeFeatures.geometry.coordinates[1].toFixed(2)) == parseFloat(coordinates[1].toFixed(2)) ){ popupCompanyList = activeFeatures } } |
|