VisioMove Essential (Android)  1.27.6

◆ setPlaceColor() [2/2]

boolean setPlaceColor ( Map< String, Integer >  placeIDToColor)

Set a group of place colors in one call.

The color update is batched. The map will be non-responsive while the surface colors are being set.

Parameters
placeIDToColorA map of placeIDs to colors. Colors should be ColorInt wrapped in Integer types.
Returns
true if all place colors were updated, otherwise false.
Note
Applies to:
  • static places
  • dynamic places
Example
Map<String, Integer> lPlaceToColor = new HashMap<>();
@ColorInt int lRedColor = Color.RED;
Integer lIntegerColor = Integer.valueOf(lRedColor);
lPlaceToColor.put("B1-UL0-001", lIntegerColor);
lPlaceToColor.put("B1-UL0-002", lIntegerColor);
mapView.setPlaceColor(lPlaceToColor);
Version
1.15
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy