其他页面制作,overlay点击事件方式冒泡
@ -1,9 +1,9 @@
|
|||||||
window.serverAPI = {
|
window.serverAPI = {
|
||||||
// baseUrl: "http://8.142.26.238:6901", //线上
|
// baseUrl: "http://8.142.26.238:6901", //线上
|
||||||
// baseUrl: "http://192.168.2.46:8080", //本地
|
baseUrl: "http://192.168.2.46:8080", //本地
|
||||||
baseUrl: "http://36.134.44.75:6901", //移动线上
|
// baseUrl: "http://36.134.44.75:6901", //移动线上
|
||||||
// geoserver
|
// geoserver
|
||||||
geoserverUrl: "http://36.134.44.75:8090/iserver/services",
|
geoserverUrl: "http://36.134.44.75:8090/iserver/services",
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: 'geoserver',
|
password: 'geoserver',
|
||||||
}
|
}
|
||||||
|
BIN
src/assets/images/honglao0.png
Normal file
After Width: | Height: | Size: 970 B |
BIN
src/assets/images/honglao1.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/images/honglao2.png
Normal file
After Width: | Height: | Size: 957 B |
BIN
src/assets/images/honglao3.png
Normal file
After Width: | Height: | Size: 1011 B |
BIN
src/assets/images/honglao4.png
Normal file
After Width: | Height: | Size: 958 B |
BIN
src/assets/images/lengdong0.png
Normal file
After Width: | Height: | Size: 849 B |
BIN
src/assets/images/lengdong1.png
Normal file
After Width: | Height: | Size: 875 B |
BIN
src/assets/images/lengdong2.png
Normal file
After Width: | Height: | Size: 810 B |
BIN
src/assets/images/lengdong3.png
Normal file
After Width: | Height: | Size: 859 B |
@ -435,7 +435,8 @@ function initMap() {
|
|||||||
element: document.createElement('div'), // 创建一个用于显示信息的div元素
|
element: document.createElement('div'), // 创建一个用于显示信息的div元素
|
||||||
positioning: 'bottom-center', // 设置覆盖层相对于锚点的位置
|
positioning: 'bottom-center', // 设置覆盖层相对于锚点的位置
|
||||||
offset: [0, -10], // 设置偏移量以便覆盖层不会遮挡图标
|
offset: [0, -10], // 设置偏移量以便覆盖层不会遮挡图标
|
||||||
stopEvent: false, // 允许地图事件继续传播(例如,缩放和拖动)
|
stopEvent: true, // 允许地图事件继续传播(例如,缩放和拖动)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//滚轮控制村级矢量
|
//滚轮控制村级矢量
|
||||||
@ -447,6 +448,7 @@ function initMap() {
|
|||||||
layers.setVisible(false);
|
layers.setVisible(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
map.on('singleclick', function (e) {
|
map.on('singleclick', function (e) {
|
||||||
alterData = ref([]);
|
alterData = ref([]);
|
||||||
const pixel = map.getEventPixel(e.originalEvent);
|
const pixel = map.getEventPixel(e.originalEvent);
|
||||||
@ -476,6 +478,9 @@ function initMap() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
map.forEachFeatureAtPixel(pixel, (feature) => {
|
map.forEachFeatureAtPixel(pixel, (feature) => {
|
||||||
|
|
||||||
|
|
||||||
|