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
void
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 legacyLabels, 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
void
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 legacyLabels, e.g 'black', '#CDCDCD'
opacity
The opacity of the MPINavigatable.MPIPolygon, e.g 0 to 1.0, defaults to 1.0