/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/boon-react-native-mapbox-gl@6.1.1/javascript/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{Animated,NativeModules,PermissionsAndroid}from"react-native";import{isAndroid}from"./utils";import*as geoUtils from"./utils/geoUtils";import MapView from"./components/MapView";import MapboxStyleSheet from"./utils/MapboxStyleSheet";import Light from"./components/Light";import PointAnnotation from"./components/PointAnnotation";import Callout from"./components/Callout";import VectorSource from"./components/VectorSource";import ShapeSource from"./components/ShapeSource";import RasterSource from"./components/RasterSource";import ImageSource from"./components/ImageSource";import FillLayer from"./components/FillLayer";import FillExtrusionLayer from"./components/FillExtrusionLayer";import LineLayer from"./components/LineLayer";import CircleLayer from"./components/CircleLayer";import SymbolLayer from"./components/SymbolLayer";import RasterLayer from"./components/RasterLayer";import BackgroundLayer from"./components/BackgroundLayer";import offlineManager from"./modules/offline/offlineManager";import snapshotManager from"./modules/snapshot/snapshotManager";let MapboxGL={...NativeModules.MGLModule};MapboxGL.requestAndroidLocationPermissions=async function(){if(isAndroid()){const e=await PermissionsAndroid.requestMultiple([PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION]);if(!e)return!1;const o=Object.keys(e);for(let r of o)if(e[r]===PermissionsAndroid.RESULTS.GRANTED)return!0;return!1}throw new Error("You should only call this method on Android!")},MapboxGL.MapView=MapView,MapboxGL.StyleSheet=MapboxStyleSheet,MapboxGL.Light=Light,MapboxGL.PointAnnotation=PointAnnotation,MapboxGL.Callout=Callout,MapboxGL.VectorSource=VectorSource,MapboxGL.ShapeSource=ShapeSource,MapboxGL.RasterSource=RasterSource,MapboxGL.ImageSource=ImageSource,MapboxGL.FillLayer=FillLayer,MapboxGL.FillExtrusionLayer=FillExtrusionLayer,MapboxGL.LineLayer=LineLayer,MapboxGL.CircleLayer=CircleLayer,MapboxGL.SymbolLayer=SymbolLayer,MapboxGL.RasterLayer=RasterLayer,MapboxGL.BackgroundLayer=BackgroundLayer,MapboxGL.offlineManager=offlineManager,MapboxGL.snapshotManager=snapshotManager,MapboxGL.geoUtils=geoUtils,MapboxGL.Animated={ShapeSource:Animated.createAnimatedComponent(ShapeSource),ImageSource:Animated.createAnimatedComponent(ImageSource),FillLayer:Animated.createAnimatedComponent(FillLayer),FillExtrusionLayer:Animated.createAnimatedComponent(FillExtrusionLayer),LineLayer:Animated.createAnimatedComponent(LineLayer),CircleLayer:Animated.createAnimatedComponent(CircleLayer),SymbolLayer:Animated.createAnimatedComponent(SymbolLayer),RasterLayer:Animated.createAnimatedComponent(RasterLayer),BackgroundLayer:Animated.createAnimatedComponent(BackgroundLayer)};export default MapboxGL;
//# sourceMappingURL=/sm/709c2a3d75ce06da84d941b79a5058fc640ff3a7752dd1a9e6179d982c85c84d.map