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
|
|
|
|
2017-09-22 14:43:40 -07:00
|
|
|
// components
|
|
|
|
|
import MapView from './components/MapView';
|
|
|
|
|
import MapboxStyleSheet from './utils/MapboxStyleSheet';
|
2017-09-26 13:32:27 -07:00
|
|
|
import Light from './components/Light';
|
2017-09-22 14:43:40 -07:00
|
|
|
|
|
|
|
|
// sources
|
|
|
|
|
import VectorSource from './components/VectorSource';
|
|
|
|
|
import ShapeSource from './components/ShapeSource';
|
2017-09-26 13:32:27 -07:00
|
|
|
import RasterSource from './components/RasterSource';
|
2017-09-22 14:43:40 -07:00
|
|
|
|
|
|
|
|
// 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-26 13:32:27 -07:00
|
|
|
import RasterLayer from './components/RasterLayer';
|
|
|
|
|
import BackgroundLayer from './components/BackgroundLayer';
|
2017-09-22 14:43:40 -07:00
|
|
|
|
2017-09-01 09:58:36 -07:00
|
|
|
let MapboxGL = { ...NativeModules.MGLModule };
|
2017-08-22 17:22:40 -07:00
|
|
|
|
|
|
|
|
// components
|
|
|
|
|
MapboxGL.MapView = MapView;
|
2017-09-22 14:43:40 -07:00
|
|
|
MapboxGL.StyleSheet = MapboxStyleSheet;
|
2017-09-26 13:32:27 -07:00
|
|
|
MapboxGL.Light = Light;
|
2017-09-22 14:43:40 -07:00
|
|
|
|
|
|
|
|
// sources
|
|
|
|
|
MapboxGL.VectorSource = VectorSource;
|
|
|
|
|
MapboxGL.ShapeSource = ShapeSource;
|
2017-09-26 13:32:27 -07:00
|
|
|
MapboxGL.RasterSource = RasterSource;
|
2017-09-22 14:43:40 -07:00
|
|
|
|
|
|
|
|
// layers
|
|
|
|
|
MapboxGL.FillLayer = FillLayer;
|
|
|
|
|
MapboxGL.FillExtrusionLayer = FillExtrusionLayer;
|
|
|
|
|
MapboxGL.LineLayer = LineLayer;
|
|
|
|
|
MapboxGL.CircleLayer = CircleLayer;
|
|
|
|
|
MapboxGL.SymbolLayer = SymbolLayer;
|
2017-09-26 13:32:27 -07:00
|
|
|
MapboxGL.RasterLayer = RasterLayer;
|
|
|
|
|
MapboxGL.BackgroundLayer = BackgroundLayer;
|
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;
|