This library allows you to show maps from Google Maps service in your application.
This library required Android 3+.
Please see the tutorial|http://www.basic4ppc.com/forum/showthread.php?p=141316 for more information about the setup process.
CameraPosition
Methods:
Initialize (Lat AsDouble, Lng AsDouble, Zoom AsFloat)
Initializes the camera position with the given latitude, longitude and zoom.
Initialize2 (Lat AsDouble, Lng AsDouble, Zoom AsFloat, Bearing AsFloat, Tilt AsFloat)
Initializes the camera position with the given latitude, longitude, zoom, bearing and tile.
IsInitialized AsBoolean
Properties:
Bearing AsFloat[read only] Returns the direction the camera is pointing at.
Target AsLatLngWrapper[read only] Returns that location that the camera is pointing at.
Tilt AsFloat[read only] Returns the tilt value.
Zoom AsFloat[read only] Returns the zoom level.
GoogleMap
Fields:
HUE_AZURE AsFloat
HUE_BLUE AsFloat
HUE_CYAN AsFloat
HUE_GREEN AsFloat
HUE_MAGENTA AsFloat
HUE_ORANGE AsFloat
HUE_RED AsFloat
HUE_ROSE AsFloat
HUE_VIOLET AsFloat
HUE_YELLOW AsFloat
MAP_TYPE_HYBRID AsInt
MAP_TYPE_NONE AsInt
MAP_TYPE_NORMAL AsInt
MAP_TYPE_SATELLITE AsInt
MAP_TYPE_TERRAIN AsInt
Methods:
AddMarker (Lat AsDouble, Lon AsDouble, Title AsString)AsMarkerWrapper Adds a marker to the map.
This method returns a Marker object which you can further customize.
AddMarker2 (Lat AsDouble, Lon AsDouble, Title AsString, HueColor AsFloat)AsMarkerWrapper Similar to AddMarker. The last parameter sets the marker's hue color. It should be
one of the HUE constants.
AddMarker3 (Lat AsDouble, Lon AsDouble, Title AsString, Bitmap AsBitmap)AsMarkerWrapper Similar to AddMarker. The last parameter sets the marker icon.
AddPolyline AsPolylineWrapper Adds a Polyline. This method returns a Polyline object which you should use to set the points.
AnimateCamera (NewPosition AsCameraPosition)
Moves the camera to the new position. The movement is animated.
Clear
GetUiSettings AsUiSettingsWrapper Returns a MapUiSettings object which you can use to configure the user interface.
IsInitialized AsBoolean
MoveCamera (NewPosition AsCameraPosition)
Immediately moves the camera to the new position.
Properties:
CameraPosition AsCameraPositionWrapper[read only] Returns the current camera position.
MapType AsInt Gets or sets the map type. The value should be one of the MAP_TYPE constants.
MyLocation AsLatLngWrapper[read only] Returns the current location. Will return an uninitialized object if the locatio is not available.
MyLocationEnabled AsBoolean Gets or sets whether the device location will be marked.
TrafficEnabled AsBoolean Gets or sets whether traffic data is drawn on the map (if such data is available).
LatLng
Methods:
Initialize (Latitude AsDouble, Longitude AsDouble)
Initializes a new object.
IsInitialized AsBoolean
Properties:
Latitude AsDouble[read only] Returns the latitude value.
Longitude AsDouble[read only] Returns the longitude value.
MapFragment
Events:
CameraChange (Position AsCameraPosition)
Click (Point AsLatLng)
LongClick (Point AsLatLng)
MarkerClick (SelectedMarker AsMarker))
Ready
Methods:
GetMap AsGoogleMapWrapper 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.
GetOpenSourceLicenseInfo AsString Returns the required attribution text.
Initialize (EventName AsString, Parent AsViewGroup)
Initializes this object and adds the map to the given parent.
IsGooglePlayServicesAvailable AsBoolean Tests whether Google Play Services area available.
AllGesturesEnabled AsBoolean[write only] Enables or disables all gestures.
CompassEnabled AsBoolean Gets or sets whether the compass is enabled.
MyLocationButtonEnabled AsBoolean Gets or sets whether the my-location button is enabled.
RotateGesturesEnabled AsBoolean Gets or sets whether rotate gestures are enabled.
ScrollGesturesEnabled AsBoolean Gets or sets whether scroll gestures are enabled.
TiltGesturesEnabled AsBoolean Gets or sets whether tilt gestures are enabled.
ZoomControlsEnabled AsBoolean Gets or sets whether zoom controls are enabled.
ZoomGesturesEnabled AsBoolean Gets or sets whether zoom gestures are enabled.
Marker
Methods:
IsInitialized AsBoolean
Remove Removes the marker from the map.
Properties:
Draggable AsBoolean Gets or sets whether the marker can be dragged by the user.
InfoWindowShown AsBoolean Gets or sets whether the info window is shown.
Position AsLatLngWrapper Gets or sets the marker position.
Snippet AsString Gets or sets the snippet text that appears when the marker is clicked.
Title AsString Gets or sets the marker title.
Visible AsBoolean Gets or sets whether the marker is visible.
Polyline
Methods:
IsInitialized AsBoolean
Remove Removes the line from the map.
Properties:
Color AsInt Gets or sets the line color.
Geodesic AsBoolean Gets or sets whether the line segments are geodesic lines (shortest path on the earth surface) or straight lines.
The default value is False.
Points AsList Gets or sets the list of points that build the lines.
The list should hold objects of type LatLng.
Visibile AsBoolean[read only] Gets or sets whether this line is visible.