expo-osm-sdk
Version:
OpenStreetMap component for React Native with Expo
24 lines • 1.27 kB
TypeScript
import React from 'react';
import type { OSMViewProps, OSMViewRef } from '../types';
interface CurrentOSMViewRef extends Pick<OSMViewRef, 'zoomIn' | 'zoomOut' | 'setZoom' | 'animateToLocation' | 'getCurrentLocation' | 'waitForLocation' | 'startLocationTracking' | 'stopLocationTracking' | 'setPitch' | 'setBearing' | 'getPitch' | 'getBearing' | 'animateCamera'> {
displayRoute?: (coordinates: any[], options?: any) => Promise<void>;
clearRoute?: () => Promise<void>;
fitRouteInView?: (coordinates: any[], padding?: number) => Promise<void>;
}
export declare const TILE_CONFIGS: {
readonly raster: {
readonly name: "OpenStreetMap Raster";
readonly type: "Raster";
readonly url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
};
readonly vector: {
readonly name: "Carto";
readonly type: "Vector";
readonly url: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json";
readonly backupUrl: "https://maps.tilehosting.com/styles/basic/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL";
};
};
declare const OSMView: React.ForwardRefExoticComponent<OSMViewProps & React.RefAttributes<CurrentOSMViewRef>>;
export { OSMView };
export default OSMView;
//# sourceMappingURL=OSMView.d.ts.map