GoogleMap is a View that shows an interactive map.
Events:
CameraChange (Position As CameraPosition) Click (Point As LatLng) MarkerClick (SelectedMarker As Marker) As Boolean 'Return True to consume the click MarkerDragged (SelectedMarker As Marker) InfoWindowClick (SelectedMarker As Marker) Click LongClick
Calculates the keyboard top point relative to the current view.
CameraPositionAsCameraPosition [read only]
Gets the current camera position.
Clear
Clears all overlay objects.
ColorAsInt
Gets or sets the view's background color.
GetOpenSourceLicenseInfoAsString
Returns the requires attribution text.
GetUiSettingsAsMapUiSettings
Returns the MapUISettings object.
HeightAsFloat
Gets or sets the view's height.
Initialize (EventNameAsString, ApiKeyAsString)
Initializes the map. ApiKey must match the key in Google developers console.
IsFocusedAsBoolean [read only]
Returns true if the view is focused.
IsInitializedAsBoolean
Tests whether this object was initialized.
LeftAsFloat
Gets or sets the view's left position.
MAP_TYPE_HYBRIDAsInt [read only]
MAP_TYPE_NONEAsInt [read only]
MAP_TYPE_NORMALAsInt [read only]
MAP_TYPE_SATELLITEAsInt [read only]
MAP_TYPE_TERRAINAsInt [read only]
MapTypeAsInt
Gets or sets the map type. The value should be one of the MAP_TYPE constants.
MoveCamera (NewPositionAsCameraPosition)
Immediately moves the camera to the new position.
MyLocationAsLatLng [read only]
Gets the current user location. Returns an uninitialized LatLng object if location is not available.
MyLocationEnabledAsBoolean
Gets or sets whether the user location will be displayed.
ParentAsViewWrapper [read only]
Returns the views parent. The returned view can be uninitialized (if there is no parent).
RemoveViewFromParent
Removes the view from its parent (same as B4A View.RemoveView method).
RequestFocusAsBoolean
Tries to set the focus on the current view. Returns True if the focus was set. Most views are not focusable. When a text view is focused the keyboard is shown.
ResignFocusAsBoolean
Removes the focus from the current view. Removing the focus from a text view will hide the keyboard.
SendToBack
Sends the view to the back.
SetAlphaAnimated (DurationMSAsInt, AlphaAsFloat)
Animates the view's alpha level. DurationMS - Animation duration measured in milliseconds. Alpha - The new alpha level (0 - transparent, 1 - fully opaque).
Animates the view's background color. DurationMS - Animation duration measured in milliseconds. BackgroundColor - The new background color. Note that Labels do not support this type of animation.
Animates the view's layout. DurationMS - Animation duration measured in milliseconds. Set to 0 to change the layout immediately. DampingRatio - If smaller than 1 then a spring effect will be applied to the animation. The minimum value should be 0.1. Set to 1 for no spring effect. Left, Top, Width and Height - The new layout.
Adds a parallax effect to the view. The view will slightly move when the device is tilted. Vertical - Vertical offset. Can be a positive or negative value. Horizontal - Horizontal offset. Can be a positive or negative value.
Adds a shadow to to the view. The border corners radius should be set to 0 when adding shadows. Colors - The shadow color. OffsetX, OffsetY - The horizontal and vertical offsets. Opacity - Sets the shadow opacity: 0 - transparent, 1 - opaque. StaticRect - (optimization parameter) Set this parameter to True if the view's size is constant.
SizeToFit
Resizes the view to make it fit its content.
TagAsObject
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
TintColorAsInt
Gets or sets the view's tint color. Some views use this color to change their appearance.
TopAsFloat
Gets or sets the view's top position.
TrafficEnabledAsBoolean
Gets or sets whether traffic data will be displayed (if it is available).
UserInteractionEnabledAsBoolean
Gets or sets whether the user can interact with this view. True by default.