我正在尝试链接两组 geojson 数据。这两个数据集集成在不同的“div”中,因此也集成在不同的地图中。从运行下面的代码可以看出,当悬停 IDS 时,动态突出显示在两个地图上都有效。但是,我想要的是在从第二张地图悬停相应的 geojson 对象时突出显示第一张地图上的 geojson 对象。(对象由相同的 ID 属性链接)。
var dat1 =({
"type" : "FeatureCollection",
"name" : "NewFeatureType",
"features" : [
{
"type" : "Feature",
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[ 7.2518485112, 47.1390738345 ],
[ 7.2540323762, 47.1390773819 ],
[ 7.2540289251, 47.1400723508 ],
[ 7.2518450195, 47.1400688032 ],
[ 7.2518485112, 47.1390738345 ]
]
]
},
"properties" : {
"start_fid" : "504748"
}
},
{
"type" : "Feature",
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[ 7.2565390484, 47.130837227 ],
[ 7.2633719322, 47.1308479108 ],
[ 7.2633626773, 47.1336579369 ],
[ 7.2565294346, 47.1336472526 ],
[ 7.2565390484, 47.130837227 ]
]
]
},
"properties" : {
"start_fid" : "862126"
}
}
]
});
相关分类