Search code examples
cursorleafletleaflet.drawngx-leaflet

How do I change the default cursor with ngx-leaflet?


I tried to change to cursor to achieve a fluid integration with leaflet draw shown in this example.

https://leaflet.github.io/Leaflet.draw/docs/examples/popup.html

When the cursor is over the image it's and open hand. When the cursor is over an drawing it's a pointer.

Unfortunately non of the standard leaflet techniques described here worked.

How do I change the default cursor in leaflet maps?

Does someone has an idea how to do it with ngx-leaflet?


Solution

  • The problem was caused by an imageoverlay with the same dimensions, which was stacked behind the tilelayer. I had to set interactive: false inside the imageOverlay