3liz / lizmap-javascript-scripts

Scripts for Lizmap Web Client
Mozilla Public License 2.0
22 stars 42 forks source link

Error loading mapillary script #82

Closed RobiFag closed 3 months ago

RobiFag commented 4 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 4 months ago

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

nboisteault commented 3 months ago

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

RobiFag commented 3 months ago

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