Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@maplibre/maplibre-gl-geocoder
Advanced tools
Readme
A geocoder control for maplibre-gl-js.
npm install --save @maplibre/maplibre-gl-geocoder
import MaplibreGeocoder from '@maplibre/maplibre-gl-geocoder';
import '@maplibre/maplibre-gl-geocoder/dist/maplibre-gl-geocoder.css';
...
// Functions should return Carmen GeoJSON https://github.com/mapbox/carmen/blob/master/carmen-geojson.md
// View config definitions in our [documentation](https://github.com/maplibre/maplibre-gl-geocoder/blob/master/API.md#setgeocoderapi)
var Geo = {
forwardGeocode: async (config) => { /* definition here */ },
reverseGeocode: async (config) => { /* definition here */ }, // optional reverse geocoding API
getSuggestions: async (config) => { /* definition here */ } // optional suggestion API
};
// Pass in or define a geocoding API that matches the above
const geocoder = new MaplibreGeocoder(Geo, { mapboxgl: maplibregl });
It is possible to use the plugin without it being placed as a control on a maplibre-gl map.
See API.md for complete reference.
See CONTRIBUTING.md.
FAQs
A geocoder control for Maplibre GL JS
The npm package @maplibre/maplibre-gl-geocoder receives a total of 22,171 weekly downloads. As such, @maplibre/maplibre-gl-geocoder popularity was classified as popular.
We found that @maplibre/maplibre-gl-geocoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.