@maptiler/geocoding-control 0.0.36 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,14 +99,18 @@ Options:
99
99
  - `clearOnBlur`: `boolean` - If true, the geocoder control will clear its value when the input blurs. Default `false`.
100
100
  - `filter`: `(feature: Feature) => boolean` - A function which accepts a Feature in the Carmen GeoJSON format to filter out results from the Geocoding API response before they are included in the suggestions list. Return true to keep the item, false otherwise.
101
101
  - `class`: `string` - Class of the root element.
102
- - `enableReverse`: `boolean | string` - Set to `true` to enable reverse geocoding button with title _toggle reverse geocoding_ or set the button title directly. Default `false`.
102
+ - `enableReverse`: `boolean | "always""` - Set to `true` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. Default `false`.
103
+ - `reverseButtonTitle`: `string` - Reverse toggle button title. Default `"toggle reverse geocoding"`.
104
+ - `clearButtonTitle`: `string` - Clear button title. Default `"clear"`.
105
+ - `showFullGeometry`: `boolean` - Set to `true` to show full feature geometry of the chosen result. Otherwise only marker will be shown. Default `true`.
106
+ - `fullGeometryStyle`: `{ fill: Pick<FillLayerSpecification, "layout" | "paint" | "filter">; line: Pick<LineLayerSpecification, "layout" | "paint" | "filter">; } | (L.PathOptions | L.StyleFunction)` - style of the full feature geometry. See Mapplibre GL JS or Leaflet documentation.
103
107
 
104
108
  Methods:
105
109
 
106
110
  - `setQuery(value: string, submit = true): void` - set the query and optionally submit it
107
111
  - `focus(): void` - focus the query input box
108
112
  - `blur(): void` - blur the query input box
109
- - `setReverseMode(value: boolean): void` - set reverse mode
113
+ - `setReverseMode(value: boolean | "always"): void` - set reverse mode
110
114
 
111
115
  Events:
112
116