This commit is contained in:
姚宇浩 2024-07-25 11:41:08 +08:00
parent 40c2f0999a
commit 8f52a5c27d
1 changed files with 0 additions and 42 deletions

View File

@ -391,38 +391,6 @@ const xkzCenter = reactive([
var map = null; var map = null;
// //
let currentMarker = null; // let currentMarker = null; //
<<<<<<< HEAD
const BMAP = (name) => {
// console.log(name, 666);
//
map.addEventListener("click", function (e) {
console.log(`${e.latlng.lng},${e.latlng.lat} `, name, 777);
// xkzCenter.forEach((item, index) => {
// if (item.name == name) {
// item.center = [e.latlng.lng, e.latlng.lat];
// }
// // console.log(item.center);
// });
// console.log(xkzCenter,888);
// addCs();
//
if (currentMarker !== null) {
map.removeOverlay(currentMarker);
}
//
let icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62));
marker.value = new BMapGL.Marker(
new BMapGL.Point(e.latlng.lng, e.latlng.lat),
{
icon: icons,
}
);
//
map.addOverlay(marker.value);
currentMarker = marker.value;
// addCs();
=======
const markera = (e) => { const markera = (e) => {
// console.log(`${e.latlng.lng},${e.latlng.lat} `, "name"); // console.log(`${e.latlng.lng},${e.latlng.lat} `, "name");
// //
@ -433,7 +401,6 @@ const markera = (e) => {
let icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62)); let icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62));
var marker = new BMapGL.Marker(new BMapGL.Point(e.latlng.lng, e.latlng.lat), { var marker = new BMapGL.Marker(new BMapGL.Point(e.latlng.lng, e.latlng.lat), {
icon: icons, icon: icons,
>>>>>>> 5f87d337a21a3b331619d0bbf01cb87ac10df9cc
}); });
// //
map.addOverlay(marker); map.addOverlay(marker);
@ -518,12 +485,7 @@ const addPolygonCounty = () => {
cfjiedao.value = item.name; cfjiedao.value = item.name;
let jdCenter = []; let jdCenter = [];
if (item.name == "溪口镇") { if (item.name == "溪口镇") {
<<<<<<< HEAD
cfJd.value = item.name;
getDatas2("溪口镇", choose.value.person);
=======
BMAP(); BMAP();
>>>>>>> 5f87d337a21a3b331619d0bbf01cb87ac10df9cc
if (!title_choose.value.includes("溪口镇")) { if (!title_choose.value.includes("溪口镇")) {
title_choose.value = title_choose.value + `>${item.name}`; title_choose.value = title_choose.value + `>${item.name}`;
} }
@ -725,10 +687,6 @@ const addCsChoose = () => {
chooseCsList.value.map((item, index) => { chooseCsList.value.map((item, index) => {
console.log("item11", item.name); console.log("item11", item.name);
sqname.value = item.name; sqname.value = item.name;
<<<<<<< HEAD
// BMAP(item.name);
=======
>>>>>>> 5f87d337a21a3b331619d0bbf01cb87ac10df9cc
let fillColor = "blue"; let fillColor = "blue";
// //
let points = []; let points = [];