], 14); const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '© OpenStreetMap' }).addTo(map); const marker1 = L.marker([48.4650,15.6862]).addTo(map) .bindPopup('Spiegel vineyard', {autoClose: false, closeOnClick: false}).openPopup(); const marker2 = L.marker([ 48.4803,15.7130]).addTo(map) .bindPopup('Lamm vineyard', {autoClose: false, closeOnClick: false}).openPopup(); const marker3 = L.marker([48.4843,15.7169]).addTo(map) .bindPopup('Grub vineyard', {autoClose: false, closeOnClick: false}).openPopup(); function onMapClick(e) { popup .setLatLng(e.latlng) .setContent(`You clicked the map at ${e.latlng.toString()}`) .openOn(map); } map.on('click', onMapClick);