You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It is not obvious for the user that a feature is clickable to get featureinfo.
Describe the solution you'd like
The mouse pointer should change to 'pointer' when hovering over an area in the map where the user can click to get featureinfo.
Describe alternatives you've considered
The following code can be added whithout changes to Origo, but it would be nice if it was a feature of origo.
The code snippet only works on WMS-layers if the layer has the setting className set to a unique value, otherwise it produces false positives on other layers around WMS-features (don't know why, it's documented briefly in OL documentation for foEachLayerAtPixel).
Also it only works on visible symbols where there actually is a pixel, so it won't work on hollow area symbols and hatched areas becomes "nervous".
* #1259 Added link pointer when hovering over clickable feature in map.
* #1259 Changed requirement for pointer to not require separate classes for layers and replaced with a shared class for all clickable layers.
Also renamed option to changePointerOnHover.
* #1259 Lint...
Co-authored-by: Stefan Forsgren <stefan@forsgren@xlent.se>
Is your feature request related to a problem? Please describe.
It is not obvious for the user that a feature is clickable to get featureinfo.
Describe the solution you'd like
The mouse pointer should change to 'pointer' when hovering over an area in the map where the user can click to get featureinfo.
Describe alternatives you've considered
The following code can be added whithout changes to Origo, but it would be nice if it was a feature of origo.
The code snippet only works on WMS-layers if the layer has the setting
className
set to a unique value, otherwise it produces false positives on other layers around WMS-features (don't know why, it's documented briefly in OL documentation for foEachLayerAtPixel).Also it only works on visible symbols where there actually is a pixel, so it won't work on hollow area symbols and hatched areas becomes "nervous".
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: