@maptiler/geocoding-control 0.0.52 → 0.0.53
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/dist/leaflet.js +171 -171
- package/dist/leaflet.umd.js +3 -3
- package/dist/maplibregl.js +171 -171
- package/dist/maplibregl.umd.js +3 -3
- package/package.json +2 -2
- package/src/lib/GeocodingControl.svelte +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/geocoding-control",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Martin Ždila",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prettier-plugin-svelte": "^2.9.0",
|
|
56
56
|
"svelte": "^3.55.1",
|
|
57
57
|
"svelte-check": "^3.0.2",
|
|
58
|
-
"svelte-preprocess": "^5.0.
|
|
58
|
+
"svelte-preprocess": "^5.0.1",
|
|
59
59
|
"tslib": "^2.4.1",
|
|
60
60
|
"typescript": "^4.9.4",
|
|
61
61
|
"vite": "^4.0.4"
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
break;
|
|
235
235
|
case "proximityChange":
|
|
236
|
+
console.log("AAAAAAAAA");
|
|
236
237
|
proximity = trackProximity ? e.proximity : undefined;
|
|
237
238
|
|
|
238
239
|
break;
|
|
@@ -338,15 +339,17 @@
|
|
|
338
339
|
sp.set("bbox", bbox.map((c) => c.toFixed(6)).join(","));
|
|
339
340
|
}
|
|
340
341
|
|
|
341
|
-
if (
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
if (!byId) {
|
|
343
|
+
if (proximity) {
|
|
344
|
+
sp.set("proximity", proximity.map((c) => c.toFixed(6)).join(","));
|
|
345
|
+
}
|
|
344
346
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
if (exact || !showResultsWhileTyping) {
|
|
348
|
+
sp.set("autocomplete", "false");
|
|
349
|
+
}
|
|
348
350
|
|
|
349
|
-
|
|
351
|
+
sp.set("fuzzyMatch", String(fuzzyMatch));
|
|
352
|
+
}
|
|
350
353
|
}
|
|
351
354
|
|
|
352
355
|
if (limit !== undefined) {
|
|
@@ -383,6 +386,7 @@
|
|
|
383
386
|
let res: Response;
|
|
384
387
|
|
|
385
388
|
try {
|
|
389
|
+
console.log("FFFFFFF");
|
|
386
390
|
res = await fetch(url, { signal: abortController.signal }).finally(() => {
|
|
387
391
|
abortController = undefined;
|
|
388
392
|
});
|
|
@@ -510,8 +514,6 @@
|
|
|
510
514
|
}
|
|
511
515
|
|
|
512
516
|
function pick(feature: Feature) {
|
|
513
|
-
console.log(feature);
|
|
514
|
-
|
|
515
517
|
picked = feature;
|
|
516
518
|
searchValue = feature.place_name;
|
|
517
519
|
selectedItemIndex = -1;
|