VisioMove Essential (Android)  1.21.0

◆ addOverlayView() [2/4]

boolean addOverlayView ( String  overlayViewID,
View  view,
String  placeID,
VMEAnchorMode  anchorMode 
)

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

Parameters
overlayViewIDThe id to given to overlay view. Must be unique.
viewThe native view to added to the map.
placeIDThe view will be anchored to the center point of the place with this ID.
anchorModeThe part of the view to be anchored to the map.
Returns
true if the overlay was added to the map, otherwise false.
View lView = pInflater.inflate(R.layout.overlay, new FrameLayout(getContext()), false)
String lTitle = (TextView) lView.findViewById(R.id.overlayTitle);
lTitle.setText("B2-LL01-ID0008");
mMapView.addOverlayView("info_overlay_id", lView, "B2-LL01-ID0008", VMEAnchorMode.CENTER_LEFT);
Version
1.14
Visioglobe® 2015-2020