【Leaflet】鼠标提取坐标
生活随笔
收集整理的這篇文章主要介紹了
【Leaflet】鼠标提取坐标
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
map.on('mousemove', function (e) {document.getElementById('info').innerHTML = /* innerHTML 屬性設置或返回表格行的開始和結束標簽之間的 HTML */// e.point is the x, y coordinates of the mousemove event relative// to the top-left corner of the mapJSON.stringify(e.containerPoint) + '<br />' +// e.lngLat is the longitude, latitude geographical position of the eventJSON.stringify(e.latlng); /* JSON.stringify() 方法可以將任意的 JavaScript 值序列化成 JSON 字符串 */});
?
總結
以上是生活随笔為你收集整理的【Leaflet】鼠标提取坐标的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么要学习python
- 下一篇: hadoop需要哪些技术支持