watergis/maplibre-gl-export

3D Terrain with MapLibre v.2.2.0-pre.3

Closed this issue · 6 comments

First of all, thank you very much for your great work. I think this is really wonderful work.

Is your feature request related to a problem? Please describe.
When I added "maplibre-gl-export" to one of my test map (Terrain map 3D with maplibre v2.2.0-pre.3) and export the image, I was able to export hill shade from raster DEM but I was not able to export terrain 3D. (See the following picture.)

Describe the solution you'd like
I would like to have an the same terrain 3D map exported.
I thought it would be done if we updated the version of maplibre-gl to 2.2.0-pre.3 from 2.1.9. (in package.json). I could not build by myself in my local PC because I needed more practice on TypeScript.
Do you have any idea for your future development?

Describe alternatives you've considered
Until it support 3D terrain export, I will not add this function to 3D terrain map.
Exporting from 2D map works perfectly.

Additional context
Add any other context or screenshots about the feature request here.
Here is some schreenshot.
2022-07-18-export

Thank you!

@ubukawa Thank you for reporting a bug related to 3D terrain feature. I think the repo can upgrade maplibre from 2.1.9 to 2.2.0 if 3D terrain feature is officially released as v2.2.0. Any PR to the repo is most welcome. Please feel free to fork the repo and make a pull request.

Thank you for sharing your idea!
I will wait the official release of v2.2.0., and will try to send PR.
(I will start from installing TypeScript...)

Thank you once again for your great work!!

@ubukawa I have updated maplibre to v2.2.1. Could you try the following version of package?

https://github.com/watergis/maplibre-gl-export/releases/tag/v1.3.6

Dear @JinIgarashi ,
Thank you for your great work.
I checked the maplibre-gl-export with 3D terrain, but it seems that it did not work well.

Terrain did not appears although the hillshades appeared properly.
It seems there would be some limitation of max pitch even if I edited it in my html files.

You can see my html files and others.

When I used tool here:
image

I got an image like this.
image

@ubukawa I finally managed to add this feature for export plugin. Please try the latest version 3.3.0 of maplibre-gl-export.