I have a map that I want the user to interface with.
Right now the below code works great but the map is ALWAYS active.
I need to be able to activate the clicks after a button is clicked.
Until the user clicks a button the viewright.on("click"...... is not enabled.
On page reload the button should have to be clicked again to register the clicks in the map
Any thoughts?
viewright.on("click", function (evt) {
viewright.hitTest(evt.screenPoint).then(function (response) {
// Do a bunch of stuff
});
});
Solved! Go to Solution.
Oh wait I am never setting the mouseEvtHandler to anything to test against......ahhahahahah....one seond
duh.....yep that was it...my error....THANKS AGAIN