@maptiler/geocoding-control 1.1.0 → 1.1.1
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/MapLibreBasedGeocodingControl.d.ts +3 -6
- package/leaflet.d.ts +3 -6
- package/leaflet.js +1 -1
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1 -1
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1 -1
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1 -1
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +6 -2
- package/react.js +1 -1
- package/react.umd.js +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/svelte/MapLibreBasedGeocodingControl.d.ts +3 -6
- package/svelte/leaflet.d.ts +3 -6
- package/svelte/types.d.ts +29 -58
- package/types.d.ts +29 -58
- package/vanilla.js +1 -1
- package/vanilla.umd.js +1 -1
|
@@ -10,8 +10,7 @@ export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
|
|
|
10
10
|
* If the value is an object, the marker will be constructed using these options.
|
|
11
11
|
* If `false`, no marker will be added to the map.
|
|
12
12
|
* Requires that `options.maplibregl` also be set.
|
|
13
|
-
*
|
|
14
|
-
* @default true
|
|
13
|
+
* Default value is `true`.
|
|
15
14
|
*/
|
|
16
15
|
marker?: boolean | MarkerOptions;
|
|
17
16
|
/**
|
|
@@ -19,16 +18,14 @@ export type MapLibreBaseControlOptions = Omit<ControlOptions, "apiKey"> & {
|
|
|
19
18
|
* If the value is an object, the marker will be constructed using these options.
|
|
20
19
|
* If `false`, no marker will be added to the map.
|
|
21
20
|
* Requires that `options.maplibregl` also be set.
|
|
22
|
-
*
|
|
23
|
-
* @default true
|
|
21
|
+
* Default value is `true`.
|
|
24
22
|
*/
|
|
25
23
|
showResultMarkers?: boolean | MarkerOptions;
|
|
26
24
|
/**
|
|
27
25
|
* If `false`, animating the map to a selected result is disabled.
|
|
28
26
|
* If `true`, animating the map will use the default animation parameters.
|
|
29
27
|
* If an object, it will be passed as options to the map `flyTo` or `fitBounds` method providing control over the animation of the transition.
|
|
30
|
-
*
|
|
31
|
-
* @default true
|
|
28
|
+
* Default value is `true`.
|
|
32
29
|
*/
|
|
33
30
|
flyTo?: boolean | (FlyToOptions & FitBoundsOptions);
|
|
34
31
|
/**
|
package/leaflet.d.ts
CHANGED
|
@@ -6,24 +6,21 @@ type LeafletControlOptions = ControlOptions & L.ControlOptions & {
|
|
|
6
6
|
* If `true`, a [Marker](https://leafletjs.com/reference.html#marker) will be added to the map at the location of the user-selected result using a default set of Marker options.
|
|
7
7
|
* If the value is an object, the marker will be constructed using these options.
|
|
8
8
|
* If `false`, no marker will be added to the map.
|
|
9
|
-
*
|
|
10
|
-
* @default true
|
|
9
|
+
* Default value is `true`.
|
|
11
10
|
*/
|
|
12
11
|
marker?: boolean | L.MarkerOptions;
|
|
13
12
|
/**
|
|
14
13
|
* If `true`, [Markers](https://leafletjs.com/reference.html#marker) will be added to the map at the location the top results for the query.
|
|
15
14
|
* If the value is an object, the marker will be constructed using these options.
|
|
16
15
|
* If `false`, no marker will be added to the map.
|
|
17
|
-
*
|
|
18
|
-
* @default true
|
|
16
|
+
* Default value is `true`.
|
|
19
17
|
*/
|
|
20
18
|
showResultMarkers?: boolean | L.MarkerOptions;
|
|
21
19
|
/**
|
|
22
20
|
* If `false`, animating the map to a selected result is disabled.
|
|
23
21
|
* If `true`, animating the map will use the default animation parameters.
|
|
24
22
|
* If an object, it will be passed as options to the map `flyTo` or `fitBounds` method providing control over the animation of the transition.
|
|
25
|
-
*
|
|
26
|
-
* @default true
|
|
23
|
+
* Default value is `true`.
|
|
27
24
|
*/
|
|
28
25
|
flyTo?: boolean | (L.ZoomPanOptions & L.FitBoundsOptions);
|
|
29
26
|
/**
|
package/leaflet.js
CHANGED
|
@@ -1523,7 +1523,7 @@ function _c(n) {
|
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
1525
|
function Ec(n, t, e) {
|
|
1526
|
-
let r, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: E = !0 } = t, { fuzzyMatch: C = !0 } = t, { language: _ = void 0 } = t, { limit: x = void 0 } = t, { mapController: w = void 0 } = t, { minLength: T = 2 } = t, { noResultsMessage: R = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: D = "Search" } = t, { proximity: L = [{ type: "server-geolocation" }] } = t, { reverseActive: A = p === "always" } = t, { reverseButtonTitle: Y = "toggle reverse geocoding" } = t, { searchValue: G = "" } = t, { showFullGeometry: ot = !0 } = t, { showPlaceType: N = "ifNeeded" } = t, { showResultsWhileTyping: k = !0 } = t, { types: Q = void 0 } = t, { excludeTypes: dt = !1 } = t, { zoom: Wt = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: on = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Br = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.1.
|
|
1526
|
+
let r, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: E = !0 } = t, { fuzzyMatch: C = !0 } = t, { language: _ = void 0 } = t, { limit: x = void 0 } = t, { mapController: w = void 0 } = t, { minLength: T = 2 } = t, { noResultsMessage: R = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: D = "Search" } = t, { proximity: L = [{ type: "server-geolocation" }] } = t, { reverseActive: A = p === "always" } = t, { reverseButtonTitle: Y = "toggle reverse geocoding" } = t, { searchValue: G = "" } = t, { showFullGeometry: ot = !0 } = t, { showPlaceType: N = "ifNeeded" } = t, { showResultsWhileTyping: k = !0 } = t, { types: Q = void 0 } = t, { excludeTypes: dt = !1 } = t, { zoom: Wt = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: on = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: ze = {} } = t, { iconsBaseUrl: Br = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.1.1/icons/" } = t, { adjustUrlQuery: Ve = (S) => {
|
|
1527
1527
|
} } = t;
|
|
1528
1528
|
function pi() {
|
|
1529
1529
|
kr.focus();
|