AnsweredAssumed Answered

Change Cursor

Question asked by jay.kapalczynski on Jul 18, 2014
Latest reply on Jul 18, 2014 by jay.kapalczynski

I was successful in changing the cursor when a specific button is clicked.  IN this case its a button that creates a buffer.

 

BUT ... the button in in the header of my web page....when I go onto the map it goes back to default.

 

  1. I want this Cursor change to only apply to this button
  2. Only change on the map DIV
  3. go back to default when another button is clicked.

 

This is what I am trying...

 

// Changes the cursor to an hourglass
function cursor_crosshair() {
document.body.style.cursor = 'crosshair';
}

 

// Returns the cursor to the default pointer
function cursor_clear() {
document.body.style.cursor = 'default';
}

 

 

cursor_crosshair();

Outcomes