diff --git a/README.md b/README.md index 5c80cdf..73e8373 100644 --- a/README.md +++ b/README.md @@ -97,4 +97,4 @@ npm install && VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev ### POI icons and bundlers -POI icons are served from CDN per default. If there is an requirement to serve them from a different location and the control is used in the application which is build with Web Application bundler (like Webpack or Vite) then it is necessary to do some extra configuration. Icons are bundled in the library and you can find them in `node_modules/@maptiler/geocoding-control/icons`. Configure your bundler and/or provide `iconsBaseUrl` option for the icons to be properly resolved. You can also copy icons from that directory to your `public` directory. +POI icons are served from CDN per default. If there is an requirement to serve them from a different location and the control is used in the application which is built with Web Application bundler (like Webpack or Vite) then it is necessary to do some extra configuration. Icons are bundled in the library and you can find them in `node_modules/@maptiler/geocoding-control/icons`. Configure your bundler and/or provide `iconsBaseUrl` option for the icons to be properly resolved. You can also copy icons from that directory to your `public` directory. diff --git a/src/types.ts b/src/types.ts index 325fd51..40f3333 100644 --- a/src/types.ts +++ b/src/types.ts @@ -93,10 +93,10 @@ export type ControlOptions = { /** * Search results closer to the proximity point will be given higher priority. First matching rule from the array will be used. - * Set to `undefined` or `null` to disable proximity. + * Set to `null` to disable the proximity. * Default value is `[{ type: "server-geolocation" }]`. */ - proximity?: ProximityRule[] | null | undefined; + proximity?: ProximityRule[] | null; /** * Override the default placeholder attribute value.