Gathering detailed insights and metrics for react-leaflet-google-tile-layer
Gathering detailed insights and metrics for react-leaflet-google-tile-layer
Gathering detailed insights and metrics for react-leaflet-google-tile-layer
Gathering detailed insights and metrics for react-leaflet-google-tile-layer
GoogleMaps layer as React component for Leaflet
npm install react-leaflet-google-tile-layer
Typescript
Module System
Node Version
NPM Version
65.3
Supply Chain
77.9
Quality
79
Maintenance
100
Vulnerability
99.3
License
JavaScript (95.05%)
HTML (4.95%)
Total Downloads
13,628
Last Day
15
Last Week
36
Last Month
105
Last Year
1,340
MIT License
62 Commits
2 Forks
1 Watchers
4 Branches
1 Contributors
Updated on Jul 10, 2018
Minified
Minified + Gzipped
Latest Version
5.1.0
Package Id
react-leaflet-google-tile-layer@5.1.0
Unpacked Size
7.39 MB
Size
7.00 MB
File Count
21
NPM Version
6.1.0
Node Version
10.6.0
Cumulative downloads
Total Downloads
Last Day
0%
15
Compared to previous day
Last Week
176.9%
36
Compared to previous week
Last Month
-36.7%
105
Compared to previous month
Last Year
43.3%
1,340
Compared to previous year
GoogleMaps layer as React component for Leaflet build on top of React-Leaflet.
The google maps layer is using the plugin from Leaflet.GridLayer.GoogleMutant
Also it uses google-maps, a wrapper for asynchronously download Google Maps API in the browser.
import { Map, TileLayer, LayersControl } from 'react-leaflet'
import GoogleLayer, { GOOGLE_LAYER_TYPES, ADDITIONAL_GOOGLE_LAYERS } from '../src'
const { BaseLayer } = LayersControl;
const key = 'Your Key goes here';
const settings = {
center: [42.09618442380296, -71.5045166015625],
zoom: 2,
}
....
<Map {...settings}>
<LayersControl position="topright">
<BaseLayer checked name='Google Maps Roadmap'>
<GoogleLayer
googleKey={KEY}
maxZoom={MAX_ZOOM}
type={GOOGLE_LAYER_TYPES.ROADMAP}
/>
</BaseLayer>
</LayersControl>
</Map>
export const ADDITIONAL_GOOGLE_LAYERS = {
TRAFFIC_LAYER: 'TrafficLayer',
TRANSIT_LAYER: 'TransitLayer',
}
export const GOOGLE_LAYER_TYPES = {
ROADMAP: 'roadmap',
SATELLITE: 'satellite',
TERRAIN: 'terrain',
HYDRID: 'hybrid',
}
For more details on how to use this plugin check the example.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
106 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-12
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