ol-contextmenu icon indicating copy to clipboard operation
ol-contextmenu copied to clipboard

Creates duplicate callbacks with multiple map instances

Open basilmohammed opened this issue 4 years ago • 1 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.

basilmohammed avatar Jan 13 '22 11:01 basilmohammed

Hi @basilmohammed

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

PR still opened https://github.com/jonataswalker/ol-contextmenu/pull/219

jonataswalker avatar Aug 23 '22 03:08 jonataswalker

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.

basilmohammed avatar Sep 24 '22 05:09 basilmohammed

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 avatar Jan 25 '23 18:01 rapto

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

rapto avatar Jan 25 '23 18:01 rapto