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
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
open override fun setPolygonColor(polygonId: String, color: String, textColor: String?, opacity: Double)
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