A React Native library for building maps with
the Vietmap GL Native SDK for iOS & Android.
Contact vietmap.vn to register a valid key.
Install package:
Using npm
:
npm i @vietmap/vietmap-gl-react-native
Using yarn
:
yarn add @vietmap/vietmap-gl-react-native
You must set your API key before using the library. This is required on Android and optional on iOS. You can set the API key in your app's entry file (e.g. App.js
).
This function must be called before using any other functions of the library.
import Vietmap from '@vietmap/vietmap-gl-react-native';
// Will be null for most users (only Vietmap authenticates this way).
// Required on Android. See Android installation notes.
Vietmap.setApiKey('YOUR_API_KEY_HERE');
We've created a demo project for Vietmap React-Native GL library
, which contains sample code for the main functions of the library here.
If you're using the Expo project
, follow the guide from this project.
- BackgroundLayer
- CircleLayer
- FillExtrusionLayer
- FillLayer
- LineLayer
- RasterLayer
- SymbolLayer
- HeatmapLayer
Contact for support
Vietmap API document here
Have a bug to report? Open an issue. If possible, include a full log and information that shows the issue. Have a feature request? Open an issue. Tell us what the feature should do and why you want the feature.