Class MarkerViewManager
java.lang.Object
com.trimblemaps.mapsdk.plugins.markerview.MarkerViewManager
- All Implemented Interfaces:
com.trimblemaps.mapsdk.maps.MapView.OnCameraDidChangeListener
public class MarkerViewManager extends Object implements com.trimblemaps.mapsdk.maps.MapView.OnCameraDidChangeListener
Class responsible for synchronising views at a LatLng on top of a Map.
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerViewManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap map) Create a MarkerViewManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarker(MarkerView markerView) Add a MarkerView to the map using MarkerView and LatLng.voidonCameraDidChange(boolean animated) voidDestroys the MarkerViewManager.voidremoveMarker(MarkerView markerView) Remove an existing markerView from the map.
-
Constructor Details
-
MarkerViewManager
public MarkerViewManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap map) Create a MarkerViewManager.- Parameters:
mapView- the MapView used to synchronise views onmap- the TrimbleMapsMap to synchronise views with
-
-
Method Details
-
onDestroy
@UiThread public void onDestroy()Destroys the MarkerViewManager.Should be called before MapView#onDestroy
-
addMarker
Add a MarkerView to the map using MarkerView and LatLng.- Parameters:
markerView- the markerView to synchronise on the map
-
removeMarker
Remove an existing markerView from the map.- Parameters:
markerView- the markerView to be removed from the map
-
onCameraDidChange
public void onCameraDidChange(boolean animated) - Specified by:
onCameraDidChangein interfacecom.trimblemaps.mapsdk.maps.MapView.OnCameraDidChangeListener
-