optgeo / free-nagasaki-maplibre

3D Tiles (pnts) with MapLibre GL JS
https://optgeo.github.io/free-nagasaki-maplibre/?tileset=https://smb.optgeo.org/ipfs/QmVqPr8p3TjgcQxVbqEuJ9kCvcMvZR3T91zyyu11VFp44G/tileset.json#13.8/32.74434/129.86525/-88.4/57
MIT License
4 stars 2 forks source link

Uncaught TypeError: MapboxLayer is not a constructor #1

Open yqx674834119 opened 1 month ago

yqx674834119 commented 1 month ago

image

Error: can not construct MapboxLayer const layer = new MapboxLayer({ id: '3d', type: Tile3DLayer, pointSize: 1.6, data: url, loader: Tiles3DLoader })

hfu commented 1 month ago

@yqx674834119 Thank you for raising this issue.

I have similar code at https://github.com/UNopenGIS/h3log/blob/main/docs/script.js recently. I will be backporting the updates here in future.

As of now, I have a running code at https://observablehq.com/@hfu/free-nagasaki-2-1 though it is slow.