Gathering detailed insights and metrics for @mapbox/mapbox-gl-geocoder
Gathering detailed insights and metrics for @mapbox/mapbox-gl-geocoder
Gathering detailed insights and metrics for @mapbox/mapbox-gl-geocoder
Gathering detailed insights and metrics for @mapbox/mapbox-gl-geocoder
Geocoder control for mapbox-gl-js using Mapbox Geocoding API
npm install @mapbox/mapbox-gl-geocoder
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
368 Stars
600 Commits
179 Forks
120 Watching
50 Branches
576 Contributors
Updated on 24 Nov 2024
Minified
Minified + Gzipped
JavaScript (96.84%)
CSS (3.16%)
Cumulative downloads
Total Downloads
Last day
-3.7%
18,098
Compared to previous day
Last week
0.4%
96,053
Compared to previous week
Last month
5.4%
410,154
Compared to previous month
Last year
26.1%
4,415,854
Compared to previous year
A geocoder control for mapbox-gl-js using the Mapbox Geocoding API. For a JavaScript geocoder without a graphical user interface see the Mapbox SDK for JS.
If you are supporting older browsers, you will need to use a polyfill. We recommend working with @babel/polyfill.
1npm install --save @mapbox/mapbox-gl-geocoder
1import MapboxGeocoder from '@mapbox/mapbox-gl-geocoder'; 2import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css'; 3... 4const geocoder = new MapboxGeocoder({ 5 accessToken: mapboxgl.accessToken, 6 mapboxgl: mapboxgl 7}); 8
It is possible to use the plugin without it being placed as a control on a mapbox-gl map. Keep in mind that the Mapbox Terms of Service require that POI search results be shown on a Mapbox map. If you don't need POIs, you can exclude them from your search results with the options.types
parameter when constructing a new Geocoder.
See API.md for complete reference.
See https://docs.mapbox.com/mapbox-gl-js/examples/#geocoder.
See CONTRIBUTING.md.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 6/8 approved changesets -- score normalized to 7
Reason
SAST tool is not run on all commits -- score normalized to 7
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
40 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