3liz / lizmap-javascript-scripts

Scripts for Lizmap Web Client
Mozilla Public License 2.0
20 stars 40 forks source link

Error loading mapillary script #82

Closed RobiFag closed 1 month ago

RobiFag commented 3 months ago

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:

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 commented 3 months ago

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

nboisteault commented 2 months ago

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

RobiFag commented 1 month ago

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