Skip to main content

Type Alias: RNPanoramaOptions

type RNPanoramaOptions = {
camera?: RNStreetViewCamera;
panoramaId?: string;
position?: RNLatLng;
radius?: number;
source?: RNStreetViewSource;
};

Initial Street View configuration. Applied once at mount time.

Properties​

PropertyTypeDefault valueDescription
camera?RNStreetViewCameraInitial camera orientation. Applied once at mount time. See RNStreetViewCamera.
panoramaId?stringLoad a specific panorama by ID. Takes priority over position when set.
position?RNLatLngInitial panorama position. Ignored when panoramaId is set. See RNLatLng.
radius?number50Search radius in meters around position.
source?RNStreetViewSource'default' See RNStreetViewSource.Restricts panoramas to the given source.