Leaflet GeoSearch
Edit page
IntroductionUsageLeaflet Control
Providers

Here Provider

note: Here services require an API key. Obtain here. For more options and configurations, see the Here developer docs.

import { HereProvider } from 'leaflet-geosearch';
const provider = new HereProvider({
params: {
apiKey: '__YOUR_HERE_KEY__',
},
});
// add to leaflet
import { GeoSearchControl } from 'leaflet-geosearch';
map.addControl(
new GeoSearchControl({
provider,
style: 'bar',
}),
);