@maptiler/geocoding-control 2.1.4 → 2.1.6
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 +51 -34
- package/leaflet-controller.js +1 -1
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +1 -1
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +161 -161
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +2 -2
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.js +29 -29
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +1 -1
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +51 -34
- package/maplibregl.js +1198 -1196
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +51 -34
- package/maptilersdk.js +1199 -1197
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +5 -5
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.js +35 -35
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +1 -1
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +3 -3
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +11 -11
- package/react.js +2 -2
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +4 -2
- package/svelte/GeocodingControl.svelte.d.ts +1 -1
- package/svelte/MapLibreBasedGeocodingControl.d.ts +51 -34
- package/svelte/MapLibreBasedGeocodingControl.js +4 -0
- package/svelte/info.json +1 -1
- package/svelte/leaflet-controller.js +1 -1
- package/svelte/maplibregl-controller.js +1 -1
- package/svelte/maplibregl.d.ts +51 -34
- package/svelte/maptilersdk.d.ts +51 -34
- package/svelte/openlayers-controller.js +1 -1
- package/vanilla.js +2 -2
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/geocoding-control",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -103,25 +103,25 @@
|
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@maptiler/sdk": "^3.0.1",
|
|
106
|
-
"@sveltejs/package": "^2.3.
|
|
106
|
+
"@sveltejs/package": "^2.3.9",
|
|
107
107
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
108
108
|
"@tsconfig/svelte": "^5.0.4",
|
|
109
|
-
"@types/geojson": "^7946.0.
|
|
109
|
+
"@types/geojson": "^7946.0.16",
|
|
110
110
|
"@types/leaflet": "^1.9.16",
|
|
111
|
-
"@types/node": "^22.
|
|
112
|
-
"@types/react": "^19.0.
|
|
111
|
+
"@types/node": "^22.12.0",
|
|
112
|
+
"@types/react": "^19.0.8",
|
|
113
113
|
"@types/react-dom": "^19.0.3",
|
|
114
114
|
"concurrently": "^9.1.2",
|
|
115
115
|
"dotenv": "^16.4.7",
|
|
116
|
-
"eslint": "^9.
|
|
116
|
+
"eslint": "^9.19.0",
|
|
117
117
|
"eslint-plugin-svelte": "^2.46.1",
|
|
118
118
|
"esm-env": "^1.2.2",
|
|
119
119
|
"globals": "^15.14.0",
|
|
120
120
|
"husky": "^9.1.7",
|
|
121
121
|
"leaflet": "^1.9.4",
|
|
122
|
-
"lint-staged": "^15.3
|
|
123
|
-
"maplibre-gl": "^5.0
|
|
124
|
-
"ol": "10.
|
|
122
|
+
"lint-staged": "^15.4.3",
|
|
123
|
+
"maplibre-gl": "^5.1.0",
|
|
124
|
+
"ol": "10.4",
|
|
125
125
|
"prettier": "^3.4.2",
|
|
126
126
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
127
127
|
"prettier-plugin-svelte": "^3.3.3",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"svelte-preprocess": "^6.0.3",
|
|
135
135
|
"tslib": "^2.8.1",
|
|
136
136
|
"typescript": "^5.7.3",
|
|
137
|
-
"typescript-eslint": "^8.
|
|
138
|
-
"vite": "^5.4.
|
|
137
|
+
"typescript-eslint": "^8.22.0",
|
|
138
|
+
"vite": "^5.4.14"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"@maptiler/sdk": "^1 || ^2 || ^3",
|
package/react.js
CHANGED
|
@@ -2233,7 +2233,7 @@ function Gn(i, e, t) {
|
|
|
2233
2233
|
const pt = [];
|
|
2234
2234
|
let { reverseGeocodingTypes: Ze = pt } = e, { exhaustiveReverseGeocoding: it = !1 } = e, { excludeTypes: nt = !1 } = e;
|
|
2235
2235
|
const Tt = void 0;
|
|
2236
|
-
let { reverseGeocodingExcludeTypes: qe = Tt } = e, { zoom: Qe = d } = e, { apiUrl: rt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: ot = {} } = e, { iconsBaseUrl: kt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.
|
|
2236
|
+
let { reverseGeocodingExcludeTypes: qe = Tt } = e, { zoom: Qe = d } = e, { apiUrl: rt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: ot = {} } = e, { iconsBaseUrl: kt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.6/icons/" } = e, { adjustUrlQuery: st = () => {
|
|
2237
2237
|
} } = e, { adjustUrl: at = () => {
|
|
2238
2238
|
} } = e;
|
|
2239
2239
|
function li(s) {
|
|
@@ -2292,7 +2292,7 @@ function Gn(i, e, t) {
|
|
|
2292
2292
|
V && te.set("proximity", V), (F || !Ge) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(w));
|
|
2293
2293
|
}
|
|
2294
2294
|
const ze = L === k ? N : L;
|
|
2295
|
-
ze !== void 0 && ze > 1 && (le == null ? void 0 : le.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), z ? (ze === 1 || ze !== void 0 && (it || (le == null ? void 0 : le.length) === 1)) && te.set("limit", String(ze)) : N !== void 0 && te.set("limit", String(N)), te.set("key", f), st(te), at(Re);
|
|
2295
|
+
ze !== void 0 && ze > 1 && (le == null ? void 0 : le.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), z ? (ze === 1 || ze !== void 0 && (it || (le == null ? void 0 : le.length) === 1)) && te.set("limit", String(ze)) : N !== void 0 && te.set("limit", String(N)), f && te.set("key", f), st(te), at(Re);
|
|
2296
2296
|
const Wi = Re.searchParams.get("types") === "" && Re.searchParams.get("excludeTypes") !== "true", Ve = Re.toString();
|
|
2297
2297
|
if (Ve === Mt) {
|
|
2298
2298
|
A ? (E && t(13, T = void 0), t(14, b = Ke[0])) : (t(13, T = Ke), ((ae = T[R]) == null ? void 0 : ae.id) !== (r == null ? void 0 : r.id) && t(15, R = -1));
|