Android Question Overzoom google maps?

androidvh

Member
Licensed User
Longtime User
Hi,

my name is Volker, and we’ve developed an app using B4a.
This app collects data from GPS receivers.
We plot the GPS readings (point, line, polygons) on Google Maps.
To do this, we use Google Maps and Google Maps Extra.
Unfortunately, the zoom level is limited.
We’re therefore looking for a way to create an overzoom.
In our search, we came across the following option:


Now for my question.
Is it possible to integrate an overzoom into the Google Maps library?
How Can we do that?


I look forward to hearing from you and would like to thank you in advance
for your efforts.
 

TILogistic

Expert
Licensed User
Longtime User
1. If the user moves the map from a city to a rural area, `maxZoomLevel` may change, for example:

maxZoomLevel (approx.)
City center = 21.0
Small town = 20.0
Rural area = 19.0
Ocean = 18.0

Google calculates this value based on map coverage and available imagery.

2. The solution offered in the link you provided is based on "TileProvider openstreetmap," which is a tile provider.

------

Google Maps also has some tile servers.
See example.

And take a look at this solution:

The proposed architecture would be as follows:
1. Obtain the position on the map.
2. Obtain the maximum zoom level (`maxZoomLevel`).
3. If the user wishes to zoom in:
* Calculate the `(x, y, z)` coordinates of the mosaic;
* Download the mosaic image from `mt1.google.com/vt`;
* Display and zoom in on the image.

ref.
 
Upvote 0
Top