We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49adf6 commit bbc7c17Copy full SHA for bbc7c17
examples/leaflet/01_chartService.html
@@ -486,8 +486,8 @@ <h5 class='panel-title text-center'>
486
function clickHandler(event) {
487
var coordinate = event.latlng;
488
var pixelCoor = event.layerPoint;
489
- var b1 = map.containerPointToLatLng([pixelCoor.x-15,pixelCoor.y+15]);
490
- 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]);
491
// 添加点要素
492
pointResultLayer && map.removeLayer(pointResultLayer);
493
pointResultLayer = L.circleMarker(coordinate,{radius:5});
0 commit comments