tombatossals / angular-openlayers-directive

AngularJS directive to embed an interact with maps managed by the OpenLayers library
http://tombatossals.github.io/angular-openlayers-directive/
MIT License
282 stars 183 forks source link

Multiple maps - overlay problem #328

Closed oiacrasec closed 7 years ago

oiacrasec commented 8 years ago

Hello guys, i need help to open multiple maps in tabs. I already created the maps but there is a problem... when 2 or more maps are open and i click over one position the popover go to the first map opened

I was looking the HTML and when a popover is opened it creates a div.ol-overlay-container inside div.ol-overlaycontainer-stopevent. Is there a way to especify the container or one way to get it working?

oiacrasec commented 8 years ago

How can i specify the "target" map?

oiacrasec commented 8 years ago

Solved, i just had to pass the ID to getMap()

example:

olData.getMap('MY_ID').then(function (nativeOl3Map) {

}
ablaye commented 7 years ago

Hello I found the solution here

juristr commented 7 years ago

Thanks @ablaye. I'm closing this issue as I assume your suggestion solved it. thanks a lot!