Please use
tags when posting code.
Code:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#AdditionalJar: com.google.android.gms:play-services-maps
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
Private rp As RuntimePermissions
End Sub
Sub Globals
Private gmapExtra As GoogleMapsExtras
Private gmap As GoogleMap
Private MapFragment1 As MapFragment
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
End Sub
Sub MapFragment1_Ready
gmap = MapFragment1.GetMap
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Dim co As CircleOptions
co.Initialize
co.Center2(40, 20).Radius(500000).FillColor(Colors.Red).StrokeColor(Colors.Yellow)
gmapExtra.AddCircle(gmap, co)
End Sub
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
If Permission = rp.PERMISSION_ACCESS_FINE_LOCATION Then
gmap.MyLocationEnabled = Result
End If
End Sub
It is based on this tutorial:
https://www.b4x.com/android/forum/threads/google-maps.63930/
Erel, Thanks! but my problem it was not that, my problem was the Version of Library "jar" of GoogleMaps, an his "resources folder"
The Version with the problem is:
'GOOGLE MAPS - v2.0.12
'#AdditionalJar: google-play-services_OLD
'#AdditionalRes: "E:/B4AResources/google_play_services/libproject/google-play-services_lib/res", com.google.android.gms
'#AdditionalRes: ../resources/google_play_services/libproject/google-play-services_lib/res", com.google.android.gms
i Updated to a new version on my project, the next:
'GOOGLE MAPS - v6.5.87
#AdditionalJar: google-play-services
#AdditionalRes: ../resources/google_play_services_new/res, com.google.android.gms
This version i found in this folder on my Android SDK, into the next file "play-services-6.5.87.aar":
- android-sdk\extras\google\m2repository\com\google\android\gms\play-services\6.5.87\play-services-6.5.87.aar
this file i opened with WinRar (or similar) and extract it on my project resource folder, now, the map renderization it has been updated with new interface and look & feel, the renderization is faster and High Quality!!!
very good and thank you very much, becouse i try your code and not work for my. this give me the begin for solve and update the quality of the Application
thanks!
PD: Sorry for my english if something is wrong