Type alias GeoJSONFeatureDiff

GeoJSONFeatureDiff: {
    addOrUpdateProperties?: {
        key: string;
        value: any;
    }[];
    id: GeoJSONFeatureId;
    newGeometry?: GeoJSON.Geometry;
    removeAllProperties?: boolean;
    removeProperties?: string[];
}

A geojson feature diff object

Type declaration

  • Optional addOrUpdateProperties?: {
        key: string;
        value: any;
    }[]

    The properties to add or update along side their values

  • id: GeoJSONFeatureId

    The feature ID

  • Optional newGeometry?: GeoJSON.Geometry

    If it's a new geometry, place it here

  • Optional removeAllProperties?: boolean

    Setting to true will remove all preperties

  • Optional removeProperties?: string[]

    The properties keys to remove