-
Notifications
You must be signed in to change notification settings - Fork 38
[Bug] Non-standard FeatureCollection type in editable-layers
#202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We are also experiencing issues with this type: import { featureCollection } from "@turf/helpers";
import { EditableGeoJsonLayer } from "@deck.gl-community/editable-layers";
const displayFeatures = featureCollection([polygonFeature])
const layer = new EditableGeoJsonLayer({
id: id,
data: displayFeatures, // type error
...
});
|
Note that this package also relies on turf.js v6.5 packages, which define their own Feature, etc. types as well. Turf 7.0+ relies on the |
I've put together a PR to sort this out (https://github.com/visgl/deck.gl-community/pull/221/files) as it's been a thorn in my side as well |
Module
Description
The
FeatureCollection
type in theeditable-types
does not conform to the standardGeoJSON.FeatureCollection
type provided by theGeoJSON
namespace.Expected Behavior
It feels appropriate to use the GeoJSON namespace instead of redefinining the types
I am willing to contribute to this with some guidance and discussion on the correct approach.
Steps to Reproduce
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: