AnsweredAssumed Answered

map hang after click during first data load

Question asked by rdawidziuk on Sep 6, 2017
Latest reply on Sep 28, 2017 by TSolow-esristaff

I have an issue during map load.

At the begining when map is waiting for the data from arcgis server (data for feature layer) and I click on map on feature map hang and do not pan. It is in moment when layer widget display progress.

 

 

In console:

   

TypeError: Cannot read property 'position' of undefined
at Object.b.hitTest (js.arcgis.com/4.4/esri/views/MapView.js:699)
at Object.c.hitTest (js.arcgis.com/4.4/esri/views/MapView.js:694)
at js.arcgis.com/4.4/esri/views/MapView.js:735
at Array.map (<anonymous>)
at Object.c.hitTest (js.arcgis.com/4.4/esri/views/MapView.js:735)
at Object._clickHandler (js.arcgis.com/4.4/init.js:2063)
at js.arcgis.com/4.4/init.js:49
at a._callback (js.arcgis.com/4.4/esri/views/MapView.js:625)
at c._handleEvent (js.arcgis.com/4.4/esri/views/MapView.js:560)
at Object.eventCallback (js.arcgis.com/4.4/esri/views/MapView.js:556)
at Object.b._doNewPropagation (js.arcgis.com/4.4/esri/views/MapView.js:540)
at Object.b._emitInputEvent (js.arcgis.com/4.4/esri/views/MapView.js:540)
at Object.emit (js.arcgis.com/4.4/esri/views/MapView.js:532)
at Object.onEmit (js.arcgis.com/4.4/esri/views/MapView.js:558)
at a.emit (js.arcgis.com/4.4/esri/views/MapView.js:561)

 

 

I use 4.4 , osm with feature layers.

 

I need to refresh page to work.

 

When I wait until progress above layerList widget stops and than pan and click it is ok, map do not hang.

 

 

Is it a bug or I can prevent hitTest before first load is finished ?

Do You know any workaround ?

 

Regards,

Robert

Outcomes