The feature.id can only be set to number that worked
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 206
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
I try to set feature.id by `geojson-vt`,but this library can only set `type of number`,but i can set `grid_id` which is `string` on mapbox-gl works well below:
```js
source: {
'grid': {
type: 'vector',
promoteId: 'grid_id',
tiles: ['http://test.pbf']
}
};
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how vt-pbf serializes feature.id and compare the requested string ID behavior with the geojson-vt and mapbox-gl examples in the issue. Done means the generated vector tile accepts the requested string-based identifier without breaking numeric IDs; the payload names no source files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100