peacemaker Expert Licensed User Longtime User Sep 12, 2017 #1 HI, All If GPS is allowed - Google Map's gmap.MyLocation.IsInitialized = true. But if disable GPS - how to make it working with other coordinates sources ?
HI, All If GPS is allowed - Google Map's gmap.MyLocation.IsInitialized = true. But if disable GPS - how to make it working with other coordinates sources ?
eurojam Well-Known Member Licensed User Longtime User Sep 12, 2017 #2 You can use the fused Location provider check this: https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/ Upvote 0
You can use the fused Location provider check this: https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/
peacemaker Expert Licensed User Longtime User Sep 12, 2017 #3 Thanks, i know about this lib, but question is not to get the coordinates - but how to setup Google Map object to initialize\show the current location not only by GPS? Is it possible to combine FusedLocation lib with Google Map lib ? Upvote 0
Thanks, i know about this lib, but question is not to get the coordinates - but how to setup Google Map object to initialize\show the current location not only by GPS? Is it possible to combine FusedLocation lib with Google Map lib ?
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2017 #4 You don't need to. Google Map will use any location provider available automatically. Last edited: Sep 13, 2017 Upvote 0
peacemaker Expert Licensed User Longtime User Sep 13, 2017 #5 I thought so also, but .MyLocation is not initialized at all if to wait long, if GPS is not allowed, but allowed "battery economizing" variant, WiFi\network location provider. #AdditionalJar: com.google.android.gmslay-services-location is already also added, in addition to #AdditionalJar: com.google.android.gmslay-services-maps Upvote 0
I thought so also, but .MyLocation is not initialized at all if to wait long, if GPS is not allowed, but allowed "battery economizing" variant, WiFi\network location provider. #AdditionalJar: com.google.android.gmslay-services-location is already also added, in addition to #AdditionalJar: com.google.android.gmslay-services-maps
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2017 #6 Here: https://www.b4x.com/android/forum/threads/google-maps-with-fusedlocationprovider.83876/ Upvote 0
peacemaker Expert Licensed User Longtime User Sep 13, 2017 #7 Thank you, Erel, for help that is important for all Google Map developers. Upvote 0