Change Building Outline Color
Android v4
To change the building outline color, along with other display properties, you must get and modify the Building Outline Display Rule.
Note that the DisplayRule will be null if MapsIndoors is not loaded.
MapsIndoors.getDisplayRule(MPSolutionDisplayRule.BUILDING_OUTLINE).setPolygonStrokeColor(Color.BLUE);The parameter strokeColor takes the color in ARGB format (with an alpha-channel value), the syntax being AARRGGBB.
Note only the values listed below are respected:
- polygonZoomTo- Sets the maximum Zoom Level at which the Building Outline is visible.- Call - setPolygonZoomToto change the value on the Display Rule
 
- polygonZoomFrom- Sets the minimum Zoom Level at which the Building Outline is visible.- Call - setPolygonZoomFromto change the value on the Display Rule
 
- polygonStrokeColor- Controls the stroke color of the Building Outline.- Call - setPolygonStrokeColorto change the value on the Display Rule
 
- polygonStrokeWidth- Controls the stroke width of the Building Outline.- Call - setPolygonStrokeWidthto change the value on the Display Rule
 
- polygonStrokeOpacity- Controls the stroke opacity of the Building Outline.- Call - setPolygonStrokeOpacityto change the value on the Display Rule
 
- polygonVisibility- Controls whether the Building Outline is visible on the map.- Call - setPolygonVisibleto change the value on the Display Rule
 
Last updated
Was this helpful?