leaflet.js
leaflet.js
- 是什么:js库
- 概述:一款能实现交互式地图功能的主流的js库
- 资料
- 主页
- Leaflet - a JavaScript library for interactive maps
- 教程
- Tutorials - Leaflet - a JavaScript library for interactive maps
- API文档
- Documentation - Leaflet - a JavaScript library for interactive maps
- 主页
示例代码
var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); L.marker([51.5, -0.09]).addTo(map) .bindPopup('A pretty CSS3 popup.<br> Easily customizable.') .openPopup();
Python版leaflet
- Python版leaflet = leaflet的Python的接口
Folium
- 概述:一个基于
leaflet.js
的Python地图库 - GitHub
- python-visualization/folium: Python Data. Leaflet.js Maps.
- 文档
- Folium — Folium 0.12.1 documentation
- 快速上手
- Quickstart — Folium 0.12.1 documentation
- 示例
- 概述:一个基于