Test:Leaflet-Popup: Unterschied zwischen den Versionen
Aus SpaceOnEarth
h_>Axel Keine Bearbeitungszusammenfassung |
Axel (Diskussion | Beiträge) K (1 Version importiert) |
(kein Unterschied)
| |
Aktuelle Version vom 4. April 2022, 15:35 Uhr
Load CSS: /images/m-dir/Test/Leaflet-Popup/leaflet.css
Load JS:/images/m-dir/Test/Leaflet-Popup/leaflet.js
Load CSS: /images/m-dir/Test/Leaflet-Popup/screen.css
Load CSS: /images/m-dir/Test/Leaflet-Popup/MarkerCluster.css
Load JS:/images/m-dir/Test/Leaflet-Popup/leaflet.markercluster-src.js
Add JS:
function mOnload() {
var map = L.map('map').setView([51.505, -0.09], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap'
}).addTo(map);
L.marker([51.5, -0.09]).addTo(map)
.bindPopup('A pretty CSS3 popup.
Hoxel Easily customizable.')
.openPopup();
}
window.onload=mOnload;
x