Skip to main content

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​

PropertyTypeDefault valueDescription
coordinatesRNLatLng[]Polygon vertices. See RNLatLng[].
fillColor?stringFill color.
geodesic?booleanfalseDraws geodesic edges.
holes?RNPolygonHole[]Polygon holes. See RNPolygonHole.
idstringUnique polygon identifier.
pressable?booleanfalseEnables polygon press events.
strokeColor?stringStroke color.
strokeWidth?numberStroke width in logical units. iOS: points (pt) Android: density-independent pixels (dp) Converted internally to physical pixels.
zIndex?number0Z-index used for rendering order.