Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HGT for offline hillshading #1101

Open
ztNFny opened this issue Feb 15, 2024 · 4 comments
Open

Support HGT for offline hillshading #1101

ztNFny opened this issue Feb 15, 2024 · 4 comments

Comments

@ztNFny
Copy link

ztNFny commented Feb 15, 2024

Unlike mapsforge vtm currently supports only online-sources for hillshading (e.g. MapilionMvtActivity.java). It'd be nice to have support for HGT format hillshading information to enable offline hillshading as well

VTM does not support currently Hillshading from digital elevation model data like HGT format. That works in Mapsforge with a different engine, processing bitmap images (mapsforge/mapsforge#923).

Originally posted by @devemux86 in #197 (comment)

@devemux86
Copy link
Collaborator

devemux86 commented Feb 15, 2024

It could work with a new offline bitmap tile source, with bitmap tiles generated from the hillshading data.
(code exists in Mapsforge)

This can be combined with any existing map source, like when using online hillshading bitmap tile source.
(like the online hillshading example)

vtm

@jhotadhari
Copy link

I copied lots of mapsforge code and build a HillshadingTileSource

First idea. Maybe some improvements and it could be implemented in vtm.

@demiantres
Copy link

I copied lots of mapsforge code and build a HillshadingTileSource

First idea. Maybe some improvements and it could be implemented in vtm.

Nice work. I was also considering to leverage OpenGL ES shaders for hill shading but I have not made progress yet.

@devemux86
Copy link
Collaborator

OpenGL has many problems, rendering artifacts and even fails to run.

Mapsforge is the recommended map library, now with map rotation and new hill shading:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants