set Polygon Color
abstract fun setPolygonColor( polygon: MPINavigatable.MPIPolygon, color: String, textColor: String? = null, opacity: Double = 1.0)
Content copied to clipboard
Sets the color of the MPINavigatable.MPIPolygon
Return
Parameters
polygon
The MPINavigatable.MPIPolygon to change the color
color
The color to set the MPINavigatable.MPIPolygon to, e.g 'black', '#CDCDCD'
text Color
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
abstract fun setPolygonColor( polygonId: String, color: String, textColor: String? = null, opacity: Double = 1.0)
Content copied to clipboard
Sets the color of the MPINavigatable.MPIPolygon
Return
Parameters
polygon Id
The id of the MPINavigatable.MPIPolygon to change the color
color
The color to set the MPINavigatable.MPIPolygon to, e.g 'black', '#CDCDCD'
text Color
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