VisioMove Essential (Android)  1.27.6

◆ addOverlayView() [3/4]

boolean addOverlayView ( String  overlayViewId,
View  view,
VMEPosition  anchorPosition 
)

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

Parameters
overlayViewIdThe id to given to overlay view. Must be unique.
viewThe native view to added to the map.
anchorPositionThe position to which the overlay view will be anchored.
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("45.74271 N 4.88076 E");
mMapView.addOverlayView("info_overlay_id", lView, new VMEPosition(45.74271f, 4.88076f, 0.0f, "B4", "B4-UL01"));
Version
1.1
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy