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": [
...
]
}
}
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.