-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to capture a mouse over event on a <aol-feature> with OpenLayer #261
Comments
Based on the code you have given, you aren't setting Regarding mouseover, you can do it by handling the map |
Thank you very much for your answer. I made some changes in my code like you can see below. Now a popup appears on click event on a DEVICE. But it is always at the bottom left of the screen, and quite far from the clicked point, as you can see on the image below. I don't understand why. First, I updated my Angular framework to the 10 version and librairies.
Here is my new template code :
Here is the new typescript code :
You can see in the browser console the result of my console.log trace
Here is the styles I got from https://openlayers.org/en/latest/examples/popup.html
Please help. Thank you in advance... |
|
Is there a way to capture mouse over event on a aol-feature on a OSM map ? I have a device list (points) which are dysplayed on the map and my goal is to be able to show a pop-up once the mouse is over a device (aol-feature).
I'm beginner on OpenLayer librairie and on OSM map.
First I tried to follow this explaination with onClick event : #84 But it does not work for me.
I'm using Angular 7 with : bootstrap: 4.1.3, ngx-bootstrap: 5.6.1, ngx-openlayers : 0.8.22, ol: 6.4.3.
Here is my template code :
Here is the typescript code :
You can see in the browser console the result of my console.log trace
So when I click on a device, the event is captured by no popup is displayed.
What is the problem ?
How to modify the code if I would like to do this on mouse over event ?
I tried this (mouseover)="mouseover($event)" but it does not work.
Please help. Thank you in advance...
The text was updated successfully, but these errors were encountered: