JS API Reference

371
2
09-02-2021 06:12 AM
Alexandre-Notos
New Contributor III

Hi all,

I'm a new arcgis js api developer. I stubbled on to something and I want to make sure I'm not missing anything.

I was trying to change the cursor style and happen to see in some code that the View object as a cursor property. Example:

const view = new MapView({
          container: "viewDiv",
          map: map,
          zoom: 12,
          center: [-117.1708, 34.0574]
        });

view.cursor = "crosshair";

However, it is not listed in the API reference https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html. Is there a reason for this?

Thanks

Alex

0 Kudos
2 Replies
RambabuMandalapu5
New Contributor
We can apply the cursor style to whole document even if we are using ArcGIS
document.body.style.cursor='crosshair';
0 Kudos
Alexandre-Notos
New Contributor III

Sorry, I don't understand our answer.

0 Kudos