export const NATIVE_MODULE_NAME: "RCTMGLMapView"; export const ANDROID_TEXTURE_NATIVE_MODULE_NAME: "RCTMGLAndroidTextureMapView"; export default MapView; declare const MapView_base: { new (props: any, nativeModuleName: any): { [x: string]: any; _nativeModuleName: any; _onAndroidCallback(e: any): void; _callbackMap: Map; _preRefMapMethodQueue: any[]; _addAddAndroidCallback(id: any, resolve: any, reject: any): void; _removeAndroidCallback(id: any): void; _runPendingNativeCommands(nativeRef: any): Promise; _runNativeCommand(methodName: any, nativeRef: any, args?: any[]): any; }; [x: string]: any; }; /** * MapView backed by Mapbox Native GL */ declare class MapView extends MapView_base { static propTypes: any; static defaultProps: { localizeLabels: boolean; scrollEnabled: boolean; pitchEnabled: boolean; rotateEnabled: boolean; attributionEnabled: boolean; compassEnabled: boolean; compassFadeWhenNorth: boolean; logoEnabled: boolean; scaleBarEnabled: boolean; surfaceView: boolean; regionWillChangeDebounceTime: number; regionDidChangeDebounceTime: number; }; constructor(props: any); logger: any; state: { isReady: null; region: null; width: number; height: number; isUserInteraction: boolean; }; _onPress(e: any): void; _onLongPress(e: any): void; _onChange(e: any): void; _onLayout(e: any): void; _onDebouncedRegionWillChange: any; _onDebouncedRegionDidChange: any; componentDidMount(): void; componentWillUnmount(): void; UNSAFE_componentWillReceiveProps(nextProps: any): void; _setHandledMapChangedEvents(props: any): void; /** * Converts a geographic coordinate to a point in the given view’s coordinate system. * * @example * const pointInView = await this._map.getPointInView([-37.817070, 144.949901]); * * @param {Array} coordinate - A point expressed in the map view's coordinate system. * @return {Array} */ getPointInView(coordinate: Array): any[]; /** * Converts a point in the given view’s coordinate system to a geographic coordinate. * * @example * const coordinate = await this._map.getCoordinateFromView([100, 100]); * * @param {Array} point - A point expressed in the given view’s coordinate system. * @return {Array} */ getCoordinateFromView(point: Array): any[]; /** * The coordinate bounds(ne, sw) visible in the users’s viewport. * * @example * const visibleBounds = await this._map.getVisibleBounds(); * * @return {Array} */ getVisibleBounds(): any[]; /** * Returns an array of rendered map features that intersect with a given point. * * @example * this._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1', 'id2']) * * @param {Array} coordinate - A point expressed in the map view’s coordinate system. * @param {Array=} filter - A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. * @param {Array=} layerIDs - A array of layer id's to filter the features by * @return {FeatureCollection} */ queryRenderedFeaturesAtPoint(coordinate: Array, filter?: any[] | undefined, layerIDs?: any[] | undefined): FeatureCollection; /** * Returns an array of rendered map features that intersect with the given rectangle, * restricted to the given style layers and filtered by the given predicate. * * @example * this._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2']) * * @param {Array} bbox - A rectangle expressed in the map view’s coordinate system. * @param {Array=} filter - A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. * @param {Array=} layerIDs - A array of layer id's to filter the features by * @return {FeatureCollection} */ queryRenderedFeaturesInRect(bbox: Array, filter?: any[] | undefined, layerIDs?: any[] | undefined): FeatureCollection; /** * Map camera will perform updates based on provided config. Deprecated use Camera#setCamera. */ setCamera(): void; /** * Takes snapshot of map with current tiles and returns a URI to the image * @param {Boolean} writeToDisk If true will create a temp file, otherwise it is in base64 * @return {String} */ takeSnap(writeToDisk?: boolean): string; /** * Returns the current zoom of the map view. * * @example * const zoom = await this._map.getZoom(); * * @return {Number} */ getZoom(): number; /** * Returns the map's geographical centerpoint * * @example * const center = await this._map.getCenter(); * * @return {Array} Coordinates */ getCenter(): Array; /** * Queries the currently loaded data for elevation at a geographical location. * The elevation is returned in meters relative to mean sea-level. * Returns null if terrain is disabled or if terrain data for the location hasn't been loaded yet. * * @param {Array} coordinate - the coordinates to query elevation at * @return {Number} */ queryTerrainElevation(coordinate: Array): number; /** * Sets the visibility of all the layers referencing the specified `sourceLayerId` and/or `sourceId` * * @example * await this._map.setSourceVisibility(false, 'composite', 'building') * * @param {boolean} visible - Visibility of the layers * @param {String} sourceId - Identifier of the target source (e.g. 'composite') * @param {String=} sourceLayerId - Identifier of the target source-layer (e.g. 'building') */ setSourceVisibility(visible: boolean, sourceId: string, sourceLayerId?: string | undefined): void; /** * Show the attribution and telemetry action sheet. * If you implement a custom attribution button, you should add this action to the button. */ showAttribution(): any; _createStopConfig(config?: {}): { mode: any; pitch: any; heading: any; duration: any; zoom: any; }; _onRegionWillChange(payload: any): void; _onRegionDidChange(payload: any): void; _handleOnChange(propName: any, payload: any): void; _getCenterCoordinate(): string | undefined; _getVisibleCoordinateBounds(): string | undefined; _getContentInset(): any; _setNativeRef(nativeRef: any): void; _nativeRef: any; setNativeProps(props: any): void; _setStyleURL(props: any): void; render(): JSX.Element; } //# sourceMappingURL=MapView.d.ts.map