Files
react-native-mapbox-gl/javascript/index.js
T

40 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-09-01 09:58:36 -07:00
import { NativeModules } from 'react-native';
import * as geoUtils from './utils/geoUtils';
2017-08-22 17:22:40 -07:00
// components
import MapView from './components/MapView';
import MapboxStyleSheet from './utils/MapboxStyleSheet';
// sources
import VectorSource from './components/VectorSource';
import ShapeSource from './components/ShapeSource';
// layers
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';
2017-09-01 09:58:36 -07:00
let MapboxGL = { ...NativeModules.MGLModule };
2017-08-22 17:22:40 -07:00
// components
MapboxGL.MapView = MapView;
MapboxGL.StyleSheet = MapboxStyleSheet;
// sources
MapboxGL.VectorSource = VectorSource;
MapboxGL.ShapeSource = ShapeSource;
// layers
MapboxGL.FillLayer = FillLayer;
MapboxGL.FillExtrusionLayer = FillExtrusionLayer;
MapboxGL.LineLayer = LineLayer;
MapboxGL.CircleLayer = CircleLayer;
MapboxGL.SymbolLayer = SymbolLayer;
2017-08-22 17:22:40 -07:00
2017-09-01 09:58:36 -07:00
// utils
MapboxGL.geoUtils = geoUtils;
2017-08-22 17:22:40 -07:00
export default MapboxGL;