React Native SDK
A React Native SDK for integrating Gebeta Maps into your mobile applications with full navigation support.
Overview
A React Native SDK for integrating Gebeta Maps into your applications. Build interactive mobile maps with marker management, fence drawing, path visualization, clustering support, geocoding, directions, and full navigation UI.
Key Features
-
Interactive Maps: Display Gebeta tiles with smooth interactions
-
Marker Management: Add and manage image markers with custom callbacks
-
Fence Drawing: Create and manage polygon fences on the map
-
Path Visualization: Display routes and paths with custom styling
-
Clustering Support: Intelligent marker clustering for better performance
-
Geocoding & Reverse Geocoding: Convert addresses to coordinates and vice versa
-
Directions & Routing: Get directions between points and display routes
-
Navigation UI: Full navigation support with route rendering and HUD
-
Custom Styling: Customize map appearance to match your design
Installation
Install the package and its required dependency:
Note: maplibre-react-native is a required peer dependency.
Prerequisites
Before you begin, you'll need:
- A Gebeta Maps API key - Register at Gebeta Maps to get your key
Basic Usage
Here's a simple example to get you started:
Fly Animation
Animate the camera to a new location:
API Reference
GebetaMap Props
| Prop | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your Gebeta Maps API key |
center | [number, number] | Yes | Initial map center [longitude, latitude] |
zoom | number | Yes | Initial zoom level |
onMapClick | (lngLat: [number, number], event: any) => void | No | Callback when map is clicked |
onMapLoaded | () => void | No | Callback when map finishes loading |
blockInteractions | boolean | No | Disable map interactions |
style | any | No | Custom styles for the map container |
clusteringOptions | ClusteringOptions | No | Options for marker clustering |
| Platform | Supported |
|---|---|
| iOS | Yes |
| Android | Yes |
Resources
For comprehensive API reference, advanced examples, and detailed documentation:
Gebeta Maps React Native GitHub Repository Or https://www.npmjs.com/package/@gebeta/tiles-react-native