Skip to content

Commit fcd6be7

Browse files
authored
GO-645 fixed proximity javadoc (#51)
1 parent 6c83a3f commit fcd6be7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ npm install && VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev
9797

9898
### POI icons and bundlers
9999

100-
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.
100+
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 for: src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ export type ControlOptions = {
9393

9494
/**
9595
* Search results closer to the proximity point will be given higher priority. First matching rule from the array will be used.
96-
* Set to `undefined` or `null` to disable proximity.
96+
* Set to `null` to disable the proximity.
9797
* Default value is `[{ type: "server-geolocation" }]`.
9898
*/
99-
proximity?: ProximityRule[] | null | undefined;
99+
proximity?: ProximityRule[] | null;
100100

101101
/**
102102
* Override the default placeholder attribute value.

0 commit comments

Comments
 (0)