jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
565 stars 149 forks source link

Avoid overriding cursor behaviour #252

Closed ondrej-vesely closed 3 years ago

ondrej-vesely commented 3 years ago

It seems using Threebox overrides all cursor behaviour defined in Mapbox by overriding the element style of .mapboxgl-canvas-container. As a result cursor is forced to default unless specified otherwise during Threebox specific interactions. This is especially frustrating when using something like mapbox-gl-draw and not getting any cursor feedback on when I'm hovering over features etc.

Possible solutions?

EDIT: Sorry for the Feature label, probably should be under Code Improvements.

jscastro76 commented 3 years ago

@ondrej-vesely Thanks for opening the issue! It’s ok with feature, no worries. I’ll look for options that allows to define a default cursor. I’ll be back to you ASAP

jscastro76 commented 3 years ago

you can use now the property tb.defaultCursor on map load event to define you favorite.