mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
830 stars 255 forks source link

Offline map mbtiles other than geographical one. #1545

Open Sanju9026 opened 2 years ago

Sanju9026 commented 2 years ago

Want to use the "Terran" view in the Offline map. How to get this view mbtiles to use in my application. You have provided only geographical.mbtile. How and where to get terran view mbtile?

Sanju9026 commented 2 years ago

In offline mode map line was not drawing while makers are coming well. I used geographical.mbtile and cannot zoom much. If you got something how to get and use terran mbtile, please provide solution.

Sanju9026 commented 2 years ago

I have downloaded a mbtile file from "https://data.maptiler.com/downloads/dataset/osm/#2.97/-13.96/40.46" for North america, US west specific region to use as offline map. But when i added that file into my project, i am getting error- [35927:354480] Bad image data for tile: 0: (0,0) and my map screen become white.

is the file not as accepted file which i downloaded from "https://data.maptiler.com/downloads/dataset/osm/#2.97/-13.96/40.46"

@mousebird please help me to resolve this issue.

mousebird commented 2 years ago

The AutoTester app has an example for using vector MBTiles files rather than raster MBTiles files. I'd suggest looking at that.

Sanju9026 commented 2 years ago

The AutoTester app has an example for using vector MBTiles files rather than raster MBTiles files. I'd suggest looking at that.

I have seen that example. Map view is too bad. I want to do as like "Terran view". is there any solution for that ? @mousebird

sjg-wdw commented 2 years ago

Sorry, not sure what you're asking.

Sanju9026 commented 2 years ago

Simulator Screen Shot - iPad Pro (12 9-inch) (5th generation) - 2022-06-29 at 09 09 39

Offline Mode: 1- In this If you see all the name are label and when i click on them it give annotation on Map. I want normal offline map as we have in Online.

Simulator Screen Shot - iPad Pro (12 9-inch) (5th generation) - 2022-06-29 at 09 09 49

2- In the above pic if i zoom it become very clumsy. It is not behaving good. Names of places should be come as label and should become small in font when we zoom map. What is issue with this Offline map?

@sjg-wdw

sjg-wdw commented 2 years ago

Offline and online maps only differ in their tile source. You'll need to look at your style sheet, if you have one, and how you're setting up your loader.