set Polygon Color
open override fun setPolygonColor( polygon: MPINavigatable.MPIPolygon, color: String, textColor: String?, opacity: Double)
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
open override fun setPolygonColor( polygonId: String, color: String, textColor: String?, opacity: Double)
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