📜  Leafletjs 位置和标记 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:49.760000             🧑  作者: 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();