public class Controller_GoogleMap
extends CyborgController
| Modifier and Type | Class and Description |
|---|---|
static class |
Controller_GoogleMap.MapMarker |
| Constructor and Description |
|---|
Controller_GoogleMap() |
| Modifier and Type | Method and Description |
|---|---|
Marker |
addMarker(Controller_GoogleMap.MapMarker mapMarker) |
void |
addPolyline(PolylineOptions polylineOption) |
CameraPosition |
getCameraPosition() |
UiSettings |
getUiSettings() |
void |
hideMyLocationIndicatorAndButton() |
protected void |
onCreate() |
void |
onInfoWindowClick(Marker marker) |
void |
onMapClick(LatLng latLng) |
void |
onMapLongClick(LatLng latLng) |
void |
onMapReady(GoogleMap googleMap) |
boolean |
onMarkerClick(Marker marker) |
void |
removeMarker(Controller_GoogleMap.MapMarker marker) |
void |
setCameraLocation(LatLng position,
boolean animate) |
void |
setCameraLocation(LatLng position,
int cameraZoom,
boolean animate) |
void |
setDefaultCameraZoom(int cameraZoom) |
void |
setMapStyle(MapStyleOptions mapStyle)
Set the map style
|
void |
setMapType(int mapType)
Set the map type
|
void |
showMap() |
void |
showMap(GoogleMapOptions mapOptions)
Show the map and pass initial map options.
|
void |
showMyLocationIndicatorAndButton(OnMyLocationButtonClickListener locationButtonClickListener) |
void |
updateRoute() |
protected void onCreate()
public void showMap()
public void showMap(GoogleMapOptions mapOptions)
mapOptions - a GoogleMapOptions objectpublic UiSettings getUiSettings()
public void setMapType(int mapType)
mapType - for example GoogleMap#MAP_TYPE_NORMALpublic void setMapStyle(MapStyleOptions mapStyle)
mapStyle - example - setMapStyle(MapStyleOptions.loadRawResourceStyle(getApplicationContext(), R.raw.map_style_default))public void showMyLocationIndicatorAndButton(OnMyLocationButtonClickListener locationButtonClickListener)
locationButtonClickListener - supply a click listener for the 'my location' buttonpublic void hideMyLocationIndicatorAndButton()
public void removeMarker(Controller_GoogleMap.MapMarker marker)
public void updateRoute()
public void onMapReady(GoogleMap googleMap)
public void setDefaultCameraZoom(int cameraZoom)
public CameraPosition getCameraPosition()
public void setCameraLocation(LatLng position,
boolean animate)
public void setCameraLocation(LatLng position,
int cameraZoom,
boolean animate)
public Marker addMarker(Controller_GoogleMap.MapMarker mapMarker)
public void addPolyline(PolylineOptions polylineOption)
public void onMapClick(LatLng latLng)
public void onMapLongClick(LatLng latLng)
public boolean onMarkerClick(Marker marker)
public void onInfoWindowClick(Marker marker)