Test:Leaflet-Popup
Aus SpaceOnEarth
Version vom 12. Januar 2020, 13:49 Uhr von h_>Axel
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