1.07 anywheresoftware.b4a.objects.MapFragmentWrapper MapFragment activity Ready CameraChange (Position As CameraPosition) Click (Point As LatLng) LongClick (Point As LatLng) MarkerClick (SelectedMarker As Marker) As Boolean 'Return True to consume the click android.permission.INTERNET com.google.android.providers.gsf.permission.READ_GSERVICES android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION $PACKAGE$.permission.MAPS_RECEIVE android.permission.ACCESS_NETWORK_STATE DesignerCreateView void base anywheresoftware.b4a.objects.PanelWrapper lw anywheresoftware.b4a.objects.LabelWrapper props anywheresoftware.b4a.objects.collections.Map GetOpenSourceLicenseInfo Should not be used. java.lang.String ba anywheresoftware.b4a.BA GetMap Returns the GoogleMap object. You should check that the object returned is initialized. It will not be initialized if there was any error. The map is only available after the Ready event fires. anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper IsGooglePlayServicesAvailable Tests whether Google Play Services area available. boolean ba anywheresoftware.b4a.BA Initialize Initializes this object and adds the map to the given parent. void ba anywheresoftware.b4a.BA EventName java.lang.String Parent android.view.ViewGroup key:MapType, displayname:Map Type, fieldtype:String, defaultvalue:NORMAL, list:NORMAL|SATELLITE|TERRAIN key:TrafficEnabled, displayname:Traffic Enabled, fieldtype:Boolean, defaultvalue:False, description:Whether to show the traffic layer. key:BuildingsEnabled, displayname:Building Enabled, fieldtype:Boolean, defaultvalue:False, description:Whether to show the buildings layer. key:auto1CompassEnabled, displayname:Compass Enabled, fieldtype:Boolean, defaultvalue:True key:auto1MyLocationButtonEnabled, displayname:MyLocation Button Enabled, fieldtype:Boolean, defaultvalue:True key:auto1RotateGesturesEnabled, displayname:Rotate Gestures Enabled, fieldtype:Boolean, defaultvalue:True key:auto1ScrollGesturesEnabled, displayname:Scroll Gestures Enabled, fieldtype:Boolean, defaultvalue:True key:auto1TiltGesturesEnabled, displayname:Tilt Gestures Enabled, fieldtype:Boolean, defaultvalue:True key:auto1ZoomControlsEnabled, displayname:Zoom Controls Enabled, fieldtype:Boolean, defaultvalue:True key:auto1ZoomGesturesEnabled, displayname:Zoom Gestures Enabled, fieldtype:Boolean, defaultvalue:True anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper GoogleMap com.google.android.gms.maps.GoogleMap process AddMarker2 Similar to AddMarker. The last parameter sets the marker's hue color. It should be one of the HUE constants. anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper Lat double Lon double Title java.lang.String HueColor float IsInitialized boolean AddMarker Adds a marker to the map. This method returns a Marker object which you can further customize. anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper Lat double Lon double Title java.lang.String AddMarker3 Similar to AddMarker. The last parameter sets the marker icon. anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper Lat double Lon double Title java.lang.String Bitmap android.graphics.Bitmap Clear void AnimateCamera Moves the camera to the new position. The movement is animated. void NewPosition com.google.android.gms.maps.model.CameraPosition GetUiSettings Returns a MapUiSettings object which you can use to configure the user interface. anywheresoftware.b4a.objects.MapFragmentWrapper.UiSettingsWrapper AddPolyline Adds a Polyline. This method returns a Polyline object which you should use to set the points. anywheresoftware.b4a.objects.MapFragmentWrapper.PolylineWrapper MoveCamera Immediately moves the camera to the new position. void NewPosition com.google.android.gms.maps.model.CameraPosition CameraPosition anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper Returns the current camera position. MyLocationEnabled boolean v boolean Gets or sets whether the device location will be marked. MyLocation anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper Returns the current location. Will return an uninitialized object if the location is not available. TrafficEnabled boolean v boolean Gets or sets whether traffic data is drawn on the map (if such data is available). MapType int v int Gets or sets the map type. The value should be one of the MAP_TYPE constants. HUE_GREEN float MAP_TYPE_SATELLITE int HUE_AZURE float HUE_ORANGE float HUE_MAGENTA float HUE_YELLOW float HUE_VIOLET float MAP_TYPE_TERRAIN int HUE_RED float MAP_TYPE_NONE int HUE_ROSE float MAP_TYPE_NORMAL int HUE_CYAN float MAP_TYPE_HYBRID int HUE_BLUE float anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper CameraPosition The map view is modeled as a camera looking down on a flat plane. See this <link>link|https://developers.google.com/maps/documentation/android/views#the_camera_position</link> for more information about the possible values. com.google.android.gms.maps.model.CameraPosition process Initialize2 Initializes the camera position with the given latitude, longitude, zoom, bearing and tile. void Lat double Lng double Zoom float Bearing float Tilt float IsInitialized boolean Initialize Initializes the camera position with the given latitude, longitude and zoom. void Lat double Lng double Zoom float Target anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper Returns the location that the camera is pointing at. Zoom float Returns the zoom level. Tilt float Returns the tilt value. Bearing float Returns the direction the camera is pointing at. anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper LatLng Holds latitude and longitude values. com.google.android.gms.maps.model.LatLng process IsInitialized boolean Initialize Initializes a new object. void Latitude double Longitude double Latitude double Returns the latitude value. Longitude double Returns the longitude value. anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper Marker An icon placed on the map. Call GoogleMap.AddMarker to create such a marker. com.google.android.gms.maps.model.Marker process Remove Removes the marker from the map. void IsInitialized boolean Draggable boolean v boolean Gets or sets whether the marker can be dragged by the user. Position anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper value anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper Gets or sets the marker position. InfoWindowShown boolean v boolean Gets or sets whether the info window is shown. Visible boolean v boolean Gets or sets whether the marker is visible. Title java.lang.String v java.lang.String Gets or sets the marker title. Snippet java.lang.String v java.lang.String Gets or sets the snippet text that appears when the marker is clicked. anywheresoftware.b4a.objects.MapFragmentWrapper.PolylineWrapper Polyline A series of lines added to the map. Call GoogleMap.AddPolyline to create this object. com.google.android.gms.maps.model.Polyline process Remove Removes the line from the map. void IsInitialized boolean Points anywheresoftware.b4a.objects.collections.List points anywheresoftware.b4a.objects.collections.List Gets or sets the list of points that build the lines. The list should hold objects of type LatLng. ZIndex float v float Gets or sets the line z-index. Color int v int Gets or sets the line color. Visible v boolean Geodesic boolean v boolean Gets or sets whether the line segments are geodesic lines (shortest path on the earth surface) or straight lines. The default value is False. Width float v float Gets or sets the line width. Visibile boolean Gets or sets whether this line is visible. anywheresoftware.b4a.objects.MapFragmentWrapper.UiSettingsWrapper MapUiSettings Call GoogleMap.GetUiSettings to obtain this object. com.google.android.gms.maps.UiSettings process IsInitialized boolean CompassEnabled boolean v boolean Gets or sets whether the compass is enabled. ZoomControlsEnabled boolean v boolean Gets or sets whether zoom controls are enabled. RotateGesturesEnabled boolean v boolean Gets or sets whether rotate gestures are enabled. TiltGesturesEnabled boolean v boolean Gets or sets whether tilt gestures are enabled. ScrollGesturesEnabled boolean v boolean Gets or sets whether scroll gestures are enabled. AllGesturesEnabled v boolean Enables or disables all gestures. ZoomGesturesEnabled boolean v boolean Gets or sets whether zoom gestures are enabled. MyLocationButtonEnabled boolean v boolean Gets or sets whether the my-location button is enabled. 2.5 This library allows you to show maps from Google Maps service in your application. It requires Android 4+ (API level 14+). Please see the <link>tutorial|https://www.b4x.com/android/forum/threads/google-maps.63930/</link> for more information about the setup process. com.google.android.gms:play-services-maps