revenger

Error using WMTSLayer in 4.4

Discussion created by revenger on Jul 20, 2017
Latest reply on Sep 1, 2017 by Bleroux

Using a WMTS Layer in 4.4 gives an error and a hanging browser

 

#load() Failed to load layer (title: 'undefined', id: 'undefined') TypeError: Cannot read property 'querySelector' of null
at Object.q.parseCapabilities (wmtsUtils.js:15)
at VM570 WMTSLayer.js:14
at d (init.js:117)
at n (init.js:117)
at k.resolve (init.js:119)
at b (init.js:118)
at init.js:118
at d (init.js:117)
at n (init.js:117)
at k.resolve (init.js:119)

 

Trying with serviceMode KVP results in different errors

 

Uncaught TypeError: Cannot read property 'id' of undefined
at Object.c.attach (WMTSLayerView2D.js:6)
at a._attachLayerView (MapView.js:35)
at Object.update (MapView.js:31)
at f._animationFrame (init.js:342)

 

Uncaught TypeError: Cannot read property 'pause' of null
at Object.c.update (WMTSLayerView2D.js:6)
at Object.c.processUpdate (MapView.js:690)
at Object.update (MapView.js:32)
at f._animationFrame (init.js:342)

 

Uncaught TypeError: Cannot read property 'pause' of null
at Object.c.update (WMTSLayerView2D.js:6)
at Object.c.processUpdate (MapView.js:690)
at Object.update (MapView.js:32)
at f._animationFrame (init.js:342)

 

Sample's are using PDOK / Nationaal Georegister to reproduce results. Internally (on-premise, no internet), we had the same problem using WMTS on a MapProxy server

Outcomes