// Initialize the map var mymap = L.map('map').setView([51.505, -0.09], 13); // Add a tile layer (you can replace 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' with other tile providers) L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(mymap); // Add a marker var marker = L.marker([51.5, -0.09]).addTo(mymap); // Add a popup to the marker marker.bindPopup("Hello World!
This is an interactive map.").openPopup();