We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6edb0a0 commit 4822d14Copy full SHA for 4822d14
src/components/filters/location.js
@@ -206,13 +206,19 @@ const LocationSelect = props => {
206
207
const tolerance =
208
area(selectedOption.value) / 10 ** 6 < 1000 ? 0.01 : 0.1;
209
- const simplified_bounds = simplify(selectedOption.value, {
+ const simplified_geometry = simplify(selectedOption.value, {
210
tolerance: tolerance,
211
highQuality: true
212
});
213
214
+ onChange(
215
+ 'geometry',
216
+ fromJS([{ label: simplified_geometry, value: simplified_geometry }])
217
+ );
218
+ onChange('in_bbox', null);
219
+
220
updateMap(
- truncate(simplified_bounds, { precision: 6, coordinates: 2 })
221
+ truncate(simplified_geometry, { precision: 6, coordinates: 2 })
222
);
223
}
224
},
0 commit comments