I use the technic of this site for manage my popups : http://plnkr.co/edit/hhEAWk?p=preview
The problem is, I've a button out of my map, and when I click it, the map zoom on an object 1 and a popup appear with data.
If I click on the button second time, the map zoom on an object 2, but my first popup is always here and my second popup don't appear.
I tried, I'm my function, to use the code :
map.getOverlays().clear(); That's ok because my first popup disappear, but my second popup don't appear.
So I tried the code :
map.addOverlay.push(new.overlay(...) But nothing appear.
Have you got an idea about the solution?
أكثر...
The problem is, I've a button out of my map, and when I click it, the map zoom on an object 1 and a popup appear with data.
If I click on the button second time, the map zoom on an object 2, but my first popup is always here and my second popup don't appear.
I tried, I'm my function, to use the code :
map.getOverlays().clear(); That's ok because my first popup disappear, but my second popup don't appear.
So I tried the code :
map.addOverlay.push(new.overlay(...) But nothing appear.
Have you got an idea about the solution?
أكثر...