AnsweredAssumed Answered

view.hittest throwing error when triggered by view's pointer-move event

Question asked by bflessner on Apr 6, 2017
Latest reply on May 1, 2017 by Jefairfi

I'm trying to change the cursor to a pointer in my application when features are hovered over. But I'm getting "TypeError: Cannot read property 'position' of undefined" when I mouseover the map before features load. Here's a sample I modified: JS Bin - Collaborative JavaScript Debugging 

If the mouse is moving over the map when the page is being loaded, the error is thrown. If not then it works fine. What's the best way to deal with this? Or is there a better way of changing the cursor to pointer when hovering over features?