@maptiler/geocoding-control 0.0.36 → 0.0.38
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 +6 -2
- package/dist/leaflet.js +2076 -690
- package/dist/leaflet.umd.js +22 -0
- package/dist/lib/LeafletGeocodingControl.d.ts +5 -1
- package/dist/lib/MaplibreglGeocodingControl.d.ts +9 -2
- package/dist/lib/leafletMapController.d.ts +1 -1
- package/dist/lib/maplibreglMapController.d.ts +5 -2
- package/dist/lib/types.d.ts +20 -2
- package/dist/maplibregl.js +801 -774
- package/dist/maplibregl.umd.js +22 -0
- package/package.json +4 -4
- package/src/lib/GeocodingControl.svelte +31 -13
- package/src/lib/LeafletGeocodingControl.ts +22 -4
- package/src/lib/MaplibreglGeocodingControl.ts +29 -6
- package/src/lib/ReverseGeocodingIcon.svelte +12 -0
- package/src/lib/leafletMapController.ts +119 -20
- package/src/lib/maplibreglMapController.ts +66 -57
- package/src/lib/types.ts +23 -2
- package/dist/leaflet.umd.cjs +0 -1
- package/dist/lib/maplibreMapController.d.ts +0 -4
- package/dist/maplibregl.umd.cjs +0 -22
- package/src/lib/BullseyeIcon.svelte +0 -12
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 |
|
|
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
|
|