setPolygonColor

open override fun setPolygonColor(polygon: MPINavigatable.MPIPolygon, color: String, textColor: String?, opacity: Double)

Sets the color of the MPINavigatable.MPIPolygon

Return

Unit

Parameters

polygon

The MPINavigatable.MPIPolygon to change the color

color

The color to set the MPINavigatable.MPIPolygon to, e.g 'black', '#CDCDCD'

textColor

The color to set the textColor of the flatLabels, e.g 'black', '#CDCDCD'

opacity

The opacity of the MPINavigatable.MPIPolygon, e.g 0 to 1.0, defaults to 1.0

open override fun setPolygonColor(polygonId: String, color: String, textColor: String?, opacity: Double)

Sets the color of the MPINavigatable.MPIPolygon

Return

Unit

Parameters

polygonId

The id of the MPINavigatable.MPIPolygon to change the color

color

The color to set the MPINavigatable.MPIPolygon to, e.g 'black', '#CDCDCD'

textColor

The color to set the textColor of the flatLabels, e.g 'black', '#CDCDCD'

opacity

The opacity of the MPINavigatable.MPIPolygon, e.g 0 to 1.0, defaults to 1.0