Why not ask your question on the new OpenStreetMap Community Forum?

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);

asked 06 Apr '22, 18:44

UCLABS's gravatar image

accept rate: 0%

edited 06 Apr '22, 21:21

TZorn's gravatar image



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.

(06 Apr '22, 20:03) SomeoneElse ♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Apr '22, 18:44

question was seen: 617 times

last updated: 06 Apr '22, 21:21

powered by OSQA