Type Alias: RNPolygon
type RNPolygon = {
coordinates: RNLatLng[];
fillColor?: string;
geodesic?: boolean;
holes?: RNPolygonHole[];
id: string;
pressable?: boolean;
strokeColor?: string;
strokeWidth?: number;
zIndex?: number;
};
Polygon definition.
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
coordinates | RNLatLng[] | Polygon vertices. See RNLatLng[]. | |
fillColor? | string | Fill color. | |
geodesic? | boolean | false | Draws geodesic edges. |
holes? | RNPolygonHole[] | Polygon holes. See RNPolygonHole. | |
id | string | Unique polygon identifier. | |
pressable? | boolean | false | Enables polygon press events. |
strokeColor? | string | Stroke color. | |
strokeWidth? | number | Stroke width in logical units. iOS: points (pt) Android: density-independent pixels (dp) Converted internally to physical pixels. | |
zIndex? | number | 0 | Z-index used for rendering order. |