mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Offline map database / resources missing #16544

Open KCotone opened 3 years ago

KCotone commented 3 years ago

Hi, I'm working on Mapbox implementation for offline usage on linux and I'm facing issue. I created an offline.db file with "mbgl-offline" program and when I run my application, the map appears well but city/country labels are not displayed.

It seems that the problem come from my database, but I don't find any way to fix that. Maybe some fonts are missing ?

map

You will find a screenshot from my database attached.

Can someone help me please ?

Thanks in advance !

db

afendin commented 3 years ago

Run into similar issue here . Did you find any solution?

KCotone commented 3 years ago

Run into similar issue here . Did you find any solution?

Hi,

Errors seems to come from the definition of some layers. I recreated those layers from scratch in mapbox studio (i.e by adding a new layer and filtering datas in "select data" tab . ), and now it works fine. I think Qt can't read some formulas that are in the JSON file.

afendin commented 3 years ago

Found real cause, you can read it in comments from my topic if you're still interested.