Skip to main content

Change Building Outline Color

One way you can alter the look and feel of your map is by changing the color of the outline surrounding your buildings.

The method to do this is different for each platform.

info

If you are looking for documentation on Android SDK v3, please see here.

To change the building outline color, along with other display properties, you must get and modify the 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 RGB format (with an alpha-channel value), the the syntax being AARRGGBB.