Gathering detailed insights and metrics for react-map-gl
Gathering detailed insights and metrics for react-map-gl
Gathering detailed insights and metrics for react-map-gl
Gathering detailed insights and metrics for react-map-gl
@types/react-map-gl
TypeScript definitions for react-map-gl
react-map-gl-geocoder
React wrapper for mapbox-gl-geocoder for use with react-map-gl
deck.gl
A suite of 3D-enabled data visualization overlays, suitable for react-map-gl
react-map-gl-heatmap-overlay
A heatmap overlay for [react-map-gl](https://github.com/uber/react-map-gl) built using [webgl-heatmap](https://github.com/vicapow/webgl-heatmap) originally created by [Florian Boesch](https://github.com/pyalot).
React friendly API wrapper around MapboxGL JS
npm install react-map-gl
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7,879 Stars
1,030 Commits
1,354 Forks
1,945 Watching
25 Branches
180 Contributors
Updated on 27 Nov 2024
TypeScript (54.52%)
JavaScript (42.02%)
CSS (1.68%)
MDX (0.76%)
Shell (0.55%)
HTML (0.48%)
Cumulative downloads
Total Downloads
Last day
-8.5%
84,854
Compared to previous day
Last week
-0.3%
461,129
Compared to previous week
Last month
7.9%
1,968,230
Compared to previous month
Last year
20%
19,619,348
Compared to previous year
2
4
react-map-gl
is a suite of React components designed to provide a React API for mapbox-gl or maplibre-gl. More information in the online documentation.
See our Design Philosophy.
Using react-map-gl
requires react >= 16.3
.
1npm install --save react-map-gl mapbox-gl
1import * as React from 'react'; 2import Map from 'react-map-gl'; 3 4function App() { 5 return <Map 6 mapLib={import('mapbox-gl')} 7 initialViewState={{ 8 longitude: -100, 9 latitude: 40, 10 zoom: 3.5 11 }} 12 style={{width: 600, height: 400}} 13 mapStyle="mapbox://styles/mapbox/streets-v9" 14 />; 15}
Starting with v2.0, mapbox-gl requires a Mapbox token for any usage, with or without the Mapbox data service. See about Mapbox tokens for your options.
To show maps from a service such as Mapbox you will need to register on their website in order to retrieve an access token required by the map component, which will be used to identify you and start serving up map tiles. The service will be free until a certain level of traffic is exceeded.
There are several ways to provide a token to your app, as showcased in some of the example folders:
mapboxAccessToken
prop to the map componentMapboxAccessToken
environment variable (or set REACT_APP_MAPBOX_ACCESS_TOKEN
if you are using Create React App)?access_token=TOKEN
See contribution guide.
react-map-gl is part of vis.gl, an Urban Computing Foundation project.
Development is also supported by
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
all dependencies are pinned
Details
Reason
Found 25/27 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
0 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
46 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More