@geoapify/geocoder-autocomplete
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -61,2 +61,3 @@ export declare class GeocoderAutocomplete { | ||
placeholder?: string; | ||
debounceDelay?: number; | ||
filter?: { | ||
@@ -63,0 +64,0 @@ [key: string]: ByCircleOptions | ByCountryCodeOptions | ByRectOptions; |
@@ -18,3 +18,4 @@ "use strict"; | ||
this.options = { | ||
limit: 5 | ||
limit: 5, | ||
debounceDelay: 100 | ||
}; | ||
@@ -203,3 +204,3 @@ this.BY_COUNTRYCODE = 'countrycode'; | ||
}); | ||
}, 100); | ||
}, this.options.debounceDelay); | ||
} | ||
@@ -206,0 +207,0 @@ getStyledAddress(featureProperties, currentValue) { |
{ | ||
"name": "@geoapify/geocoder-autocomplete", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Geocoder autocomplete field", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -82,2 +82,3 @@ # Geoapify Geocoder Autocomplete | ||
| placeholder | string | An input field placeholder | | ||
| debounceDelay | number | A delay between user input and the API call to prevent unnecessary calls. The default value is 100ms. | | ||
| skipIcons | boolean | Don't add icons to suggestions | | ||
@@ -84,0 +85,0 @@ | skipDetails | boolean | Skip Place Details API call on selection change | |
99992
2893
216