ignite-mapbox

0.0.16 • Public • Published


ignite mapbox

An ignite plugin for adding mapbox easier

You can install mapbox and link it by this command

ignite add map

and generate a map component with

ignite generate map MapName

then use it as below

and you can get your token key with instructions inside mapbox github https://github.com/mapbox/react-native-mapbox-gl

then you can use token key inside App>Config>MapboxConfig.tsx

Usage :

import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxConfig from "../../Config/MapboxConfig";
MapboxGL.setAccessToken(MapboxConfig.accessToken); // here you set access token
...
<MapboxGL.MapView
 styleURL={ColorScheme.mapStyleUrl}
 zoomLevel={15}
 centerCoordinate={[51.3890,35.6892]}
 style={{flex:1}}
 >
</MapboxGL.MapView>

Dependents (0)

Package Sidebar

Install

npm i ignite-mapbox

Weekly Downloads

1

Version

0.0.16

License

MIT

Unpacked Size

15 kB

Total Files

13

Last publish

Collaborators

  • lvlrsajjad