Skip to content

feature.toGeoJSON to return feature's ID #40

@emirpasic

Description

@emirpasic

It would be convenient if the VectorTileFeature.toGeoJSON method returned feature's ID.

https://github.com/mapbox/vector-tile-js/blob/master/lib/vectortilefeature.js

...
return {
        _id: this._id, // proposal
        type: "Feature",
        geometry: {
            type: type,
            coordinates: coords
        },
        properties: this.properties
    };
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions