Select to view content in your preferred language

Change Cursor

680
1
Jump to solution
07-18-2014 07:41 AM
jaykapalczynski
Honored Contributor

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();

0 Kudos
1 Solution

Accepted Solutions
jaykapalczynski
Honored Contributor

GOT it with this

app.map.setMapCursor("crosshair");

View solution in original post

0 Kudos
1 Reply
jaykapalczynski
Honored Contributor

GOT it with this

app.map.setMapCursor("crosshair");

0 Kudos