lizmap-javascript-scripts icon indicating copy to clipboard operation
lizmap-javascript-scripts copied to clipboard

Error loading mapillary script

Open RobiFag opened this issue 1 year ago • 2 comments

Hi, I'm tring to use Mapillary script but when I click on the icon tool I get this error:

Composite.js:170 Uncaught TypeError: e.layer.renderDeferred is not a function
    at Composite.js:170:24
    at Array.forEach (<anonymous>)
    at lh.declutter (Composite.js:169:17)
    at lh.renderFrame (Composite.js:143:10)
    at fc.renderFrame_ (Map.js:1570:20)
    at fc.animationDelay_ (Map.js:1424:10)

The tool dock appears but the mapillary layer is not loaded.

I'm using:

  • Lizmap 3.7.8
  • QGIS Server 3.34.6
  • Py-QGIS-Server 1.8.8
  • Plugin atlasprint 3.4.0
  • Plugin Lizmap server 2.9.2
  • Plugin wfsOutputExtension 1.8.0

I get the same error with your demo project too (https://demo.lizmap.com/lizmap/index.php/view/map?repository=javascript&project=mapillary)

image

RobiFag avatar Jul 15 '24 09:07 RobiFag

The script works with an old Lizmap installation (LWC 3.5.11 and QGIS server 3.16.16)

RobiFag avatar Jul 17 '24 06:07 RobiFag

@RobiFag I have updated the script, can you try it and give us feedback please?

nboisteault avatar Aug 02 '24 14:08 nboisteault

@nboisteault sorry for the delay, I have just tested the new script and it works! Thanks!

RobiFag avatar Aug 22 '24 07:08 RobiFag