Is there any way to display two PopUps at the same time or even launch a second PopUp from a link ? This is my code I'm testing, but it shows the first window then quickly disappears. Any direction or help would be great. Even a chose between which PopUp: Current Weather or Forecast Weather var popup = L.popup(); //popup function function onMapClick(e) { popup .setLatLng(e.latlng) .setContent("You clicked the map at " + e.latlng.toString()+ 'Visit Google"') //esample from leaflet, will be immediately replaced by weatherpopup... .openOn(mymap); //map.on('click', onMapClick); |
This looks like a general web development question (albeit using Leaflet), so a more general JS / web development forum might be a better home for the question.