From bbc7c1745aeeb593f59f8f81a8e5b4d8a5ff9eda Mon Sep 17 00:00:00 2001 From: chenxianhui Date: Mon, 28 Oct 2024 17:46:16 +0800 Subject: [PATCH] =?UTF-8?q?[example]=E4=BF=AE=E6=94=B9leaflet=E6=B5=B7?= =?UTF-8?q?=E5=9B=BE=E7=A4=BA=E4=BE=8B=E7=82=B9=E9=80=89=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=82=B9=E5=87=BB=E5=9D=90=E6=A0=87=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/leaflet/01_chartService.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/leaflet/01_chartService.html b/examples/leaflet/01_chartService.html index 5c7c529aa..c2f8babd2 100644 --- a/examples/leaflet/01_chartService.html +++ b/examples/leaflet/01_chartService.html @@ -486,8 +486,8 @@
function clickHandler(event) { var coordinate = event.latlng; var pixelCoor = event.layerPoint; - var b1 = map.containerPointToLatLng([pixelCoor.x-15,pixelCoor.y+15]); - var b2 = map.containerPointToLatLng([pixelCoor.x+15,pixelCoor.y-15]); + var b1 = map.layerPointToLatLng([pixelCoor.x-15,pixelCoor.y+15]); + var b2 = map.layerPointToLatLng([pixelCoor.x+15,pixelCoor.y-15]); // 添加点要素 pointResultLayer && map.removeLayer(pointResultLayer); pointResultLayer = L.circleMarker(coordinate,{radius:5});