Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fixing arcgis4.4 hitTest error
Workaround to fix error on arcgis4.4 view click
// XXX: TypeError: Cannot read property 'position' of undefined
view.originalHitTest = view.hitTest;
view.hitTest = function (evt) {
try {
return view.originalHitTest(evt);
} catch (e) {
return Promise.reject();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.