Bing Provider

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

import { BingProvider } from 'leaflet-geosearch';

const provider = new BingProvider({
  params: {
    key: '__YOUR_BING_KEY__',
  },
});

// add to leaflet
import { GeoSearchControl } from 'leaflet-geosearch';

map.addControl(
  new GeoSearchControl({
    provider,
    style: 'bar',
  }),
);