jonataswalker/ol-contextmenu

Creates duplicate callbacks with multiple map instances

basilmohammed opened this issue ยท 4 comments

When we have more than one map (even with different map objects), it creates duplicate callbacks as we have only a single contextmenu object which is global. So when we create a new contextmenu in different map, the contextmenu object gets replaced.

Hi @basilmohammed

I've just published 5.0.0-alpha. Are you able to help with a validation?

PR still opened
#219

Hi @jonataswalker
Thank you for the update.
Sorry to say that I am not currently working with this build.
I am helpless to validate this.
Really appreciates your effort.

rapto commented

I can confirm the bug exists on 5.1.0. In our app, we load an array of maps to show a time evolution of temperature.

rapto commented

I can't see why there is only one global Object (but then, I can't read ts)