|
@@ -225,6 +225,10 @@ async function onSearch() {
|
|
const marker = new T.Marker(point, {
|
|
const marker = new T.Marker(point, {
|
|
icon: icon_red
|
|
icon: icon_red
|
|
}); // 创建标注
|
|
}); // 创建标注
|
|
|
|
+ marker.addEventListener('click', () => {
|
|
|
|
+ checkSiteUser(siteUser);
|
|
|
|
+
|
|
|
|
+ });
|
|
(map as any).addOverLay(marker);// 将标注添加到地图中
|
|
(map as any).addOverLay(marker);// 将标注添加到地图中
|
|
markerList.value.push(marker);
|
|
markerList.value.push(marker);
|
|
}
|
|
}
|