I try building a map using CartoDB.js. The map displays a number of points. When a point is clicked, I change the layer SQL to filter some points out. What I want is that when user click on the map, outside of any point, I can handle this event to revert the map to initial state. Will it be possible?

  • Basically, yes, you can do pretty much everything with Javascript. But, it would help if you showed what you have tried so far. – John Powell Aug 13 '15 at 14:47
  • I can see the events of layer and sublayer for "featureClick" but there is no event for something like on layerClick? – Khue Vu Aug 13 '15 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.