New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rnmapbox/maps

Package Overview
Dependencies
Maintainers
0
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnmapbox/maps

A Mapbox react native module for creating custom maps

  • 10.1.36
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
161K
increased by181.75%
Maintainers
0
Weekly downloads
 
Created

What is @rnmapbox/maps?

@rnmapbox/maps is a React Native library that provides a comprehensive set of tools for integrating Mapbox maps into mobile applications. It allows developers to add interactive maps, customize map styles, and incorporate various map features such as markers, annotations, and user location tracking.

What are @rnmapbox/maps's main functionalities?

Displaying a Map

This feature allows you to display a basic map using Mapbox. The code sample shows how to render a map view with a camera set to a specific zoom level and center coordinate.

import MapboxGL from '@rnmapbox/maps';

<MapboxGL.MapView style={{ flex: 1 }}>
  <MapboxGL.Camera
    zoomLevel={8}
    centerCoordinate={[-73.970895, 40.723279]}
  />
</MapboxGL.MapView>

Adding Markers

This feature allows you to add markers to the map. The code sample demonstrates how to place a point annotation (marker) at a specific coordinate on the map.

import MapboxGL from '@rnmapbox/maps';

<MapboxGL.MapView style={{ flex: 1 }}>
  <MapboxGL.Camera
    zoomLevel={8}
    centerCoordinate={[-73.970895, 40.723279]}
  />
  <MapboxGL.PointAnnotation
    id="marker1"
    coordinate={[-73.970895, 40.723279]}
  />
</MapboxGL.MapView>

User Location Tracking

This feature enables tracking of the user's location on the map. The code sample shows how to configure the map to follow the user's location and display it on the map.

import MapboxGL from '@rnmapbox/maps';

<MapboxGL.MapView style={{ flex: 1 }}>
  <MapboxGL.Camera
    followUserLocation={true}
    followUserMode="normal"
  />
  <MapboxGL.UserLocation visible={true} />
</MapboxGL.MapView>

Other packages similar to @rnmapbox/maps

Keywords

FAQs

Package last updated on 19 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc