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

Interactivity wont work if the only column is the cartodb_id #2089

Closed
IagoLast opened this issue Apr 16, 2018 · 1 comment
Closed

Interactivity wont work if the only column is the cartodb_id #2089

IagoLast opened this issue Apr 16, 2018 · 1 comment
Labels
Milestone

Comments

@IagoLast
Copy link
Contributor

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

@IagoLast IagoLast added the bug label Apr 16, 2018
@IagoLast
Copy link
Contributor Author

bug or feature?

@ivanmalagon ivanmalagon added this to the v4.1 milestone Jun 14, 2018
@rubenmoya rubenmoya self-assigned this Jun 26, 2018
@rubenmoya rubenmoya removed their assignment Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants