leaflet 传单快速入门
本文向大家介绍leaflet 传单快速入门,包括了leaflet 传单快速入门的使用技巧和注意事项,需要的朋友参考一下
示例
<!DOCTYPE html> <html> <head> <title>My Leaflet Map</title> <link rel="stylesheet" href="//unpkg.com/leaflet@1.0.2/dist/leaflet.css" /> <style type="text/css"> #map { height: 500px; } </style> </head> <body> <div id="map"></div> <script xx_src="//unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script> <script> var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); L.marker([51.5, -0.09]).addTo(map) .bindPopup('A pretty CSS3 popup.<br> Easily customizable.') .openPopup(); </script> </body> </html>