developmentseed / road-planning-datapipeline

Data pipeline for the Road Planning tool
MIT License
0 stars 1 forks source link

Feature id for rn vector tiles #8

Closed AliceR closed 4 years ago

AliceR commented 4 years ago

The mabox-gl setFeatureState method requires the feature.id attribute on data sets. I think we could just duplicate the properties.id as feature.id. Note: It needs to be integer.

{
  "type": "Feature",
  "id": 123,  // <-- This is what I need 🙃
  "properties": {
    "id": 123,
    "roadId": "RA-123"
  },
  "geometry": {
    "type": "LineString",
    "coordinates": [
          ...
    ]
  }
}
olafveerman commented 4 years ago

This was fixed in: https://github.com/developmentseed/road-planning-datapipeline/pull/2.