mapview staying blank (except scale bar) #908
-
I'm trying to integrate VTM into an existing Android app. I started with the Question is: Is there a way to debug for what's going wrong here, what's missing etc.? Any object where I can read the "health state" of VTM from, or something like this? Any pointer to get me looking in the right place would be very welcomed. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
It is better to study the Samples and compare the code. Are you going to use VTM in c:geo? |
Beta Was this translation helpful? Give feedback.
-
2 different OpenGL map engines together?
The API is expected to be different in several functions. I keep VTM compatible with Mapsforge maps / themes. VTM themes are more advanced with extra rules. |
Beta Was this translation helpful? Give feedback.
-
Ok, I've made some progress: Mapsforge offline maps do work, as does Google Maps. Switching between OSM / GM as well as between different offline maps does work as well. But I'm facing two issues currently: Online maps (bitmap map source using a URL)Displaying an online map source does not work yet, the mapview is a dark gray area only (but with map scale). I'm using the following code fragment to initialize the map (copied from some of the examples):
Anything I'm missing here? Something else I need to initialize etc.? Second question is somewhat related: Switching between different tile providersWhat do I have to do to switch between different tile providers? Something like Thanks for your support! |
Beta Was this translation helpful? Give feedback.
-
Please study the working samples, like BitmapTileActivity. Maps are layers, replace the existing with new ones (see also here). |
Beta Was this translation helpful? Give feedback.
It is better to study the Samples and compare the code.
And implement map life cycle as seen in GettingStarted.
Are you going to use VTM in c:geo?