-
public class MarkerViewMarkerView class wraps a latitude-longitude pair with a Android SDK View.
It can be used in conjunction with MarkerViewManager to synchronise the Android SDK View on top of map at the latitude-longitude pair.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMarkerView.OnPositionUpdateListenerCallback definition that is invoked when position placement of a MarkerView is calculated.
-
Field Summary
Fields Modifier and Type Field Description private LatLnglatLngprivate MarkerView.OnPositionUpdateListeneronPositionUpdateListener
-
Constructor Summary
Constructors Constructor Description MarkerView(LatLng latLng, View view)Create a MarkerView
-
Method Summary
Modifier and Type Method Description voidsetLatLng(@NonNull() LatLng latLng)Update the location of the MarkerView on the map. voidsetOnPositionUpdateListener(MarkerView.OnPositionUpdateListener onPositionUpdateListener)Set a callback to be invoked when position placement is calculated. -
-
Constructor Detail
-
MarkerView
MarkerView(LatLng latLng, View view)
Create a MarkerView- Parameters:
latLng- latitude-longitude pairview- an Android SDK View
-
-
Method Detail
-
setLatLng
void setLatLng(@NonNull() LatLng latLng)
Update the location of the MarkerView on the map.
Provided as a latitude-longitude pair.
- Parameters:
latLng- latitude-longitude pair
-
setOnPositionUpdateListener
void setOnPositionUpdateListener(MarkerView.OnPositionUpdateListener onPositionUpdateListener)
Set a callback to be invoked when position placement is calculated.
Can be used to offset a MarkerView on screen.
- Parameters:
onPositionUpdateListener- callback to be invoked when position placement is calculated
-
-
-
-