addOverlayView

fun addOverlayView(overlayViewID: String, view: View, poiID: String): Boolean

Adds a native overlay view above the map that's associated with a poi.

Return

true if the overlay was added to the map, otherwise false.

Since

1.1

View lView = pInflater.inflate(R.layout.overlay, new FrameLayout(getContext()), false)
String lTitle = (TextView) lView.findViewById(R.id.overlayTitle);
lTitle.setText("B2-LL01-ID0008");
mMapController.addOverlayView("info_overlay_id", lView, "B2-LL01-ID0008");

Parameters

overlayViewID

The id to given to overlay view. Must be unique.

view

The native view to added to the map.

poiID

The view will be anchored to the center point of the poi with this ID.


fun addOverlayView(overlayViewID: String, view: View, poiID: String, anchorMode: VMEAnchorMode): Boolean

Adds a native overlay view above the map that's associated with a poi.

Return

true if the overlay was added to the map, otherwise false.

Since

1.14

View lView = pInflater.inflate(R.layout.overlay, new FrameLayout(getContext()), false)
String lTitle = (TextView) lView.findViewById(R.id.overlayTitle);
lTitle.setText("B2-LL01-ID0008");
mMapController.addOverlayView("info_overlay_id", lView, "B2-LL01-ID0008", VMEAnchorMode.CENTER_LEFT);

Parameters

overlayViewID

The id to given to overlay view. Must be unique.

view

The native view to added to the map.

poiID

The view will be anchored to the center point of the poi with this ID.

anchorMode

The part of the view to be anchored to the map.


fun addOverlayView(overlayViewId: String, view: View, anchorPosition: VMEPosition): Boolean

Adds a native overlay view above the map that's associated with a position.

Return

true if the overlay was added to the map, otherwise false.

Since

1.1

View lView = pInflater.inflate(R.layout.overlay, new FrameLayout(getContext()), false)
String lTitle = (TextView) lView.findViewById(R.id.overlayTitle);
lTitle.setText("45.74271 N 4.88076 E");
mMapController.addOverlayView("info_overlay_id", lView, new VMEPosition(45.74271f, 4.88076f, 0.0f, "B4", "B4-UL01"));

Parameters

overlayViewId

The id to given to overlay view. Must be unique.

view

The native view to added to the map.

anchorPosition

The position to which the overlay view will be anchored.


fun addOverlayView(overlayViewID: String, view: View, anchorPosition: VMEPosition, anchorMode: VMEAnchorMode): Boolean

Adds a native overlay view above the map that's associated with a position.

Return

true if the overlay was added to the map, otherwise false.

Since

1.14

View lView = pInflater.inflate(R.layout.overlay, new FrameLayout(getContext()), false)
String lTitle = (TextView) lView.findViewById(R.id.overlayTitle);
lTitle.setText("45.74271 N 4.88076 E");
mMapController.addOverlayView("info_overlay_id", lView, new VMEPosition(45.74271f, 4.88076f, 0.0f, "B4", "B4-UL01"), VMEAnchorMode.CENTER_LEFT);

Parameters

overlayViewID

The id to given to overlay view. Must be unique.

view

The native view to added to the map.

anchorPosition

The position to which the overlay view will be anchored.

anchorMode

The part of the view to be anchored to the map.