Open u10313335 opened 1 month ago
0.2.0
The KML files cannot be previewed.
The KML file can be previewed in the v0.1.0:
I'm not familiar with the OpenLayers and ol-helpers, but I suspect that all previews using OL are affected.
Here is the stack trace shown in the console:
ol-helpers.js:1119 Uncaught TypeError: Cannot read properties of undefined (reading 'call') at qu.loader [as loader_] (ol-helpers.js:1119:34) at qu.loadFeatures (ol.js:1:274829) at C_.prepareFrame (ol.js:1:489459) at A_.render (ol.js:1:72775) at Al.renderFrame (ol.js:1:146114) at LoggingMap.renderFrame_ (ol.js:1:193101) at LoggingMap.animationDelay_ (ol.js:1:191548) loader @ ol-helpers.js:1119 loadFeatures @ ol.js:1 prepareFrame @ ol.js:1 render @ ol.js:1 renderFrame @ ol.js:1 renderFrame_ @ ol.js:1 animationDelay_ @ ol.js:1 requestAnimationFrame render @ ol.js:1 handleSizeChanged_ @ ol.js:1 dispatchEvent @ ol.js:1 notify @ ol.js:1 set @ ol.js:1 setSize @ ol.js:1 updateSize @ ol.js:1 handleTargetChanged_ @ ol.js:1 dispatchEvent @ ol.js:1 notify @ ol.js:1 set @ ol.js:1 setProperties @ ol.js:1 Qh @ ol.js:1 LoggingMap @ ol-helpers.js:391 createMapFun @ ol_preview.js:183 (anonymous) @ ol_preview.js:316 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 add @ jquery.js:3559 (anonymous) @ jquery.js:3892 Deferred @ jquery.js:3983 then @ jquery.js:3877 _commonBaseLayer @ ol_preview.js:131 _onReady @ ol_preview.js:312 proxy @ jquery.js:10780 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 add @ jquery.js:3559 (anonymous) @ jquery.js:3892 Deferred @ jquery.js:3983 then @ jquery.js:3877 jQuery.fn.ready @ jquery.js:4072 initialize @ ol_preview.js:92 module.createInstance @ module.js:338 (anonymous) @ module.js:307 each @ jquery.js:385 module.initializeElement @ module.js:303 (anonymous) @ module.js:280 each @ jquery.js:385 each @ jquery.js:207 module.initialize @ module.js:279 (anonymous) @ main.js:46 fire @ jquery.js:3500 fireWith @ jquery.js:3630 mightThrow @ jquery.js:3825 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 fireWith @ jquery.js:3630 fire @ jquery.js:3638 fire @ jquery.js:3500 fireWith @ jquery.js:3630 done @ jquery.js:9796 (anonymous) @ jquery.js:10057 load send @ jquery.js:10076 ajax @ jquery.js:9690 jQuery.<computed> @ jquery.js:9846 getJSON @ jquery.js:9827 getLocaleData @ client.js:111 ckan.initialize @ main.js:44 (anonymous) @ main.js:87 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 fireWith @ jquery.js:3630 fire @ jquery.js:3638 fire @ jquery.js:3500 fireWith @ jquery.js:3630 ready @ jquery.js:4110 completed @ jquery.js:4120 ol.js:1 Uncaught TypeError: o is not a function at Sc.a.onload (ol.js:1:204667) Sc.a.onload @ ol.js:1 load Sc @ ol.js:1 OL_HELPERS.createKMLLayer @ ol-helpers.js:1098 kml @ ol_preview.js:31 withLayers @ ol_preview.js:81 createMapFun @ ol_preview.js:256 (anonymous) @ ol_preview.js:316 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 add @ jquery.js:3559 (anonymous) @ jquery.js:3892 Deferred @ jquery.js:3983 then @ jquery.js:3877 _commonBaseLayer @ ol_preview.js:131 _onReady @ ol_preview.js:312 proxy @ jquery.js:10780 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 add @ jquery.js:3559 (anonymous) @ jquery.js:3892 Deferred @ jquery.js:3983 then @ jquery.js:3877 jQuery.fn.ready @ jquery.js:4072 initialize @ ol_preview.js:92 module.createInstance @ module.js:338 (anonymous) @ module.js:307 each @ jquery.js:385 module.initializeElement @ module.js:303 (anonymous) @ module.js:280 each @ jquery.js:385 each @ jquery.js:207 module.initialize @ module.js:279 (anonymous) @ main.js:46 fire @ jquery.js:3500 fireWith @ jquery.js:3630 mightThrow @ jquery.js:3825 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 fireWith @ jquery.js:3630 fire @ jquery.js:3638 fire @ jquery.js:3500 fireWith @ jquery.js:3630 done @ jquery.js:9796 (anonymous) @ jquery.js:10057 load send @ jquery.js:10076 ajax @ jquery.js:9690 jQuery.<computed> @ jquery.js:9846 getJSON @ jquery.js:9827 getLocaleData @ client.js:111 ckan.initialize @ main.js:44 (anonymous) @ main.js:87 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 fireWith @ jquery.js:3630 fire @ jquery.js:3638 fire @ jquery.js:3500 fireWith @ jquery.js:3630 ready @ jquery.js:4110 completed @ jquery.js:4120
ckanext-geoview version
0.2.0
Describe the bug
The KML files cannot be previewed.
Steps to reproduce
Expected behavior
The KML file can be previewed in the v0.1.0:
Additional details
I'm not familiar with the OpenLayers and ol-helpers, but I suspect that all previews using OL are affected.
Here is the stack trace shown in the console: