We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use case: We want to log the cartodb_id on feature click
layer.on(`featureClicked`, d => { console.log(d.data.cartodb_id) })
This is not working:
const layer = new carto.layer.Layer(cartoSource, cartoStyle, { featureClickColumns: ['cartodb_id'] });
But this works
const layer = new carto.layer.Layer(cartoSource, cartoStyle, { featureClickColumns: ['cartodb_id', 'foo'] });
cc @ivanmalagon @Jesus89
The text was updated successfully, but these errors were encountered:
bug or feature?
Sorry, something went wrong.
No branches or pull requests
Use case: We want to log the cartodb_id on feature click
This is not working:
But this works
cc @ivanmalagon @Jesus89
The text was updated successfully, but these errors were encountered: