Closed jfoclpf closed 3 years ago
The feature collection had swapped lat and long and thus the result was empty, maybe just a tip, if the result is undefined it could be more verbose just letting the user to know that console.log('no polygon found for that point')
Describe the bug
method search is returning
undefined
Steps to Reproduce
I cannot put here all the FeatureCollection
geojson.distritos
but it's well definedI should mention that each polygon has a very large number of sides, here a console.log of
geojson.distritos.features[0].geometry.coordinates
:Expected behavior
I wanted the polygons in which the point lies in
Environment: