Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maps] Remove number-restriction on feature-ids #61004

Closed
thomasneirynck opened this issue Mar 23, 2020 · 2 comments
Closed

[Maps] Remove number-restriction on feature-ids #61004

thomasneirynck opened this issue Mar 23, 2020 · 2 comments
Labels
chore [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation

Comments

@thomasneirynck
Copy link
Contributor

thomasneirynck commented Mar 23, 2020

In Maps:

for (let i = 0; i < featureCollection.features.length; i++) {
const id = generateNumericalId();
ids.push(id);
}
const randomizedIds = _.shuffle(ids);
,

All features from a geojson:

Latest mapbox-gl (mapbox/mapbox-gl-js#8987) seems to allow string-ids now. When upgrading, Maps should have this logic removed as both operations were purely to work around limitations of mapbox-gl.

@thomasneirynck thomasneirynck added chore [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.8.0 labels Mar 23, 2020
@thomasneirynck thomasneirynck self-assigned this Mar 23, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@thomasneirynck
Copy link
Contributor Author

let's close. can do this when there's a specific need, otherwise this is just a refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation
Projects
None yet
Development

No branches or pull requests

2 participants