EduardoElias Well-Known Member Licensed User Longtime User Jul 31, 2017 #1 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
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 Jul 31, 2017 #2 eelias said: Is it correct to use webview for this case? Click to expand... 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
eelias said: Is it correct to use webview for this case? Click to expand... 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.
EduardoElias Well-Known Member Licensed User Longtime User Jul 31, 2017 #3 DonManfred said: 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. Click to expand... 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
DonManfred said: 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. Click to expand... 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
DonManfred Expert Licensed User Longtime User Jul 31, 2017 #4 There is no tutorial. Read the f**** manual Code: Copy Dim cp As CameraPosition cp.Initialize(15.16,120.55,4.0) gmap.AnimateCamera(cp) Upvote 0
There is no tutorial. Read the f**** manual Code: Copy Dim cp As CameraPosition cp.Initialize(15.16,120.55,4.0) gmap.AnimateCamera(cp)
Tayfur Well-Known Member Licensed User Longtime User Jul 31, 2017 #5 eelias said: My question is how can I set a specific location on the map as the central position and zoom to it? Click to expand... The answer to your problem might be in the following example. https://www.b4x.com/android/forum/threads/google-maps-on-webview-no-api-key.70308/#post-450649 Upvote 0
eelias said: My question is how can I set a specific location on the map as the central position and zoom to it? Click to expand... The answer to your problem might be in the following example. https://www.b4x.com/android/forum/threads/google-maps-on-webview-no-api-key.70308/#post-450649