06 2020 档案
摘要:h5之获取朝向和定位 定位: 通过h5中的getCurrentPosition()方法可以获取到移动设备定位的经纬度 function getLocation() { var that = this if (navigator.geolocation) { navigator.geolocation
阅读全文
摘要:Leaflet之marker旋转 在leaflet本身的api中,maker没有设置旋转的配置项。 如果想对maker进行旋转设置,需要引用外部包:leaflet-rotatedmarker api:https://github.com/bbecquet/Leaflet.RotatedMarker
阅读全文
摘要:Leaflet之时间的添加和删除 事件添加: map.on('click', (res) => { console.log(res.latlng) // 打印点击位置坐标 }) 事件移除: map.off('click') 钻研不易,转载请注明出处......
阅读全文