Android Question Google Maps on Webview

EduardoElias

Active Member
Licensed User
Longtime User
I see something weird happening in some tablets.

I have a webview where I put a URL with

http://maps.google.com/maps/api/staticmap?center='+Lat+','+Long
+'&zoom=15'
+'&size='+'300'+'x'+'300'
+'&markers=color:blue label:ENTREGA'
+'&sensor=false';

This URL is created on my server and I use it on my android Tablet

What is happening is that it shows correctly at first time and then it starts a zooming out.

It happens in old tablets like Samsung tab 2 for example, or Motorola Xoom.

When using more modern tablets like Samsung Tab E it works correctly (kitkat)

Is it correct to use webview for this case? Should I use something else?

It is common to have these old tablets around, since there are customers for economy sake get used ones (and make sense since they work pretty well)

Thank you
 

DonManfred

Expert
Licensed User
Longtime User
Is it correct to use webview for this case?
I dont think it is the correct solution.
I guess the expected solution is to use GoogleMaps library and use the native GoogleMaps instead of a Webview.
 
Upvote 0

EduardoElias

Active Member
Licensed User
Longtime User
I dont think it is the correct solution.
I guess the expected solution is to use GoogleMaps library and use the native GoogleMaps instead of a Webview.

Hey, thank you.....

I went over all the trouble and made the MapFragment be ready for my app.

My question is how can I set a specific location on the map as the central position and zoom to it?

Can you suply a link to a tutorial or something like that....

It is a delivery application, I need to show the destiny on the map and if possible the route (this is optional)

Thank you
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top