add Overlay View
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
The id to given to overlay view. Must be unique.
The native view to added to the map.
The view will be anchored to the center point of the poi with this ID.
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
The id to given to overlay view. Must be unique.
The native view to added to the map.
The view will be anchored to the center point of the poi with this ID.
The part of the view to be anchored to the map.
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
The id to given to overlay view. Must be unique.
The native view to added to the map.
The position to which the overlay view will be anchored.
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
The id to given to overlay view. Must be unique.
The native view to added to the map.
The position to which the overlay view will be anchored.
The part of the view to be anchored to the map.