open-pioneer / trails-openlayers-base-packages

Common OpenLayers packages for the Open Pioneer Trails client framework.
Apache License 2.0
8 stars 6 forks source link

[Spatial selection] Show no-drop cursor only on map #254

Closed bierett closed 2 months ago

bierett commented 8 months ago

If the selected source for the spatial selection isn't available, the cursor will change from default|pointer to no-drop. If the cursor is e.g. on the overview map or toc, the cursor is still no-drop.

Image

We want to show the no-drop cursor only on the map, not on all other UI elements.

bierett commented 8 months ago

Idea: Set cursor on map's viewport, e.g.

olMap.getViewport().style.cursor = "no-drop";
olMap.getViewport().style.cursor = ""; // to set default cursor
mbeckem commented 5 months ago

Note: it should be possible to work around this in applications by creating a css rule for the overview map (and other relevant components), e.g. cursor: pointer.

mbeckem commented 2 months ago

Resolved by #333