I'm looking for a way to change the cursor on map drag and prevent ArcGIS from overriding it. Currently we're changing the cursor with CSS and this works for everything except for when we drag the map. ArcGIS overrides that and we're not sure where that is happening.
Solved! Go to Solution.
Try setting your CSS rule on view.surface rather than view.container.
ie view.surface.style.cursor = "pointer";
The API internally changes the cursor. I have not tested but have you tried to add a !Important on the css rule?
We have done that, but it doesn't seem to make any difference.
Try setting your CSS rule on view.surface rather than view.container.
ie view.surface.style.cursor = "pointer";
That totally worked! We saw an answer similar, but setting the "data-cursor" property and that didn't work.