leaflet.js

  • leaflet.js

    • 是什么:js库
    • 概述:一款能实现交互式地图功能的主流的js库
    • 资料
    • 示例代码

      var map = L.map('map').setView([51.505, -0.09], 13);
      
      L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
          attribution: '&copy; <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

results matching ""

    No results matching ""