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

Load local map mbtiles file #143

Open
Xinyu-HD opened this issue Jul 3, 2024 · 1 comment
Open

Load local map mbtiles file #143

Xinyu-HD opened this issue Jul 3, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@Xinyu-HD
Copy link

Xinyu-HD commented Jul 3, 2024

Problem Description
I am trying to use maplibre-native-qt to render a local map mbtiles file. I tried to use the widgt example to display a local pre-downloaded mbtiles file. I first divided the mbtiles file into a z/x/y/pbf file structure and then tried to load these files from the local but it didn't work. I guess the file was not loaded successfully. Can you give me some advice and guidance?

Platform information
Qt version 6 x64 windows

@ntadej ntadej added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 16, 2024
@ntadej ntadej added this to the 3.1 milestone Aug 16, 2024
@wecand0
Copy link

wecand0 commented Oct 16, 2024

You can do it. In your style.json you should use such code "sources": { "maptiler_planet": { "url": "mbtiles:///home/user/yourmbtile.mbtiles", "type": "vector" } } and this "glyphs": "asset://glyphs/{fontstack}/{range}.pbf" , to generate such font format, take your any ttf font, go to , All works in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants