Comments (6)
On it. We are losing the right map reference.
from ol-contextmenu.
Please see the working repro at here which opens multiple windows with the 'test callback' menu item.
Thanks
from ol-contextmenu.
Thank you @jonataswalker! I've tested the latest v5.2.1 and the issue is resolved. Thanks again for all your awesome work.
from ol-contextmenu.
I haven't been able reproduce in a repro and its possible this is an Angular scoping issue. If I'm able to reproduce the issue, I'll repost. Thank you.
from ol-contextmenu.
@phelanHayes , Checked your repo and got confused. For a better clarity, I am suggesting you to create a context menu for any of the map and verify the behavior. Hope my point is clear.
from ol-contextmenu.
Hi @basilmohammed, I'm not sure I understand your comment. In the repro example, there are two maps and two contextmenus, one for each map. They each have separate event listener functions. Is this what you mean? I'm glad to add anything additional that is needed.
For the repro example, the corresponding event listener fires twice when invoked from its parent map/contextmenu. Thanks.
from ol-contextmenu.
Related Issues (20)
- Context menu doesn't position correctly HOT 4
- "open" event not triggered when constructed with defaultItems: false HOT 5
- Wrong offset and z-index for submenu
- Add icons (.svg) as it's own element instead of using background image
- When closing the context menu object, the listeners linked to the map are not deleted! HOT 1
- Uncaught SyntaxError: Cannot use import statement outside a module HOT 2
- Cannot use with parcel HOT 2
- Invalid positioning when `push`ing item with sub-items HOT 2
- Hi,there,when I use ol-contextmenu4.1.0 in Vue project,the callBack function is not work,I don't how to solove this problem? HOT 2
- Start draging with menu open HOT 4
- Generate menu from json HOT 2
- positioning when extending with sub-items HOT 4
- Allow to translate default items text HOT 1
- Can Node 20 be added to the list of approved engines? HOT 3
- Support for OpenLayers 8 HOT 4
- Unexpected token 'export' when testing Angular app with Jest
- support for 8.2.0 HOT 9
- OL 9 HOT 2
- Add font awesome icons to context menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ol-contextmenu.