📜  如何在 javascript 中创建传单地图 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:45.289000             🧑  作者: Mango

代码示例1
var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: '© OpenStreetMap contributors'
}).addTo(map);

L.marker([51.5, -0.09]).addTo(map)
    .bindPopup('A pretty CSS3 popup.
Easily customizable.') .openPopup();