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.
- I want this Cursor change to only apply to this button
- Only change on the map DIV
- 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();