OpenStreetMap
LittleFiveSmile
用来记录学习笔记的
展开
-
OpenStreetMap + Leaflet 当前位置定位
想用Leaflet在OpenStreetMap上面使用位置定位 我使用了leaflet-locatecontrol插件 实现效果 github 地址:https://github.com/domoritz/leaflet-locatecontrol Html <head>里面: <!-- 添加Leaflet的CSS --> <link rel="sty...原创 2019-08-15 17:03:30 · 4562 阅读 · 0 评论 -
OpenStreetMap + Leaflet 搜索邮编/经纬度/地址 标记地图
必须写一篇纪念一下我呕心沥血的几小时。 之前用leaflet-control-geocoder实现了一个 这次我用leaflet-opencage-search 通过搜索,它会直接在地图上加一个蓝色Marker 使用方法如下: 首先在html的<head>里面添加: <!-- leaflet--> <script src="https://un...原创 2019-09-25 22:07:13 · 1368 阅读 · 0 评论