Is it possible to disable infowindow but retain featureClick event in cartodb.js?

المشرف العام

Administrator
طاقم الإدارة
I would like to pass the data from a marker in a featureClick() event to perform other actions. However I do NOT want an infowindow or tooltip to display. I can quite easily remove the infowindow/tooltip in the options of createLayer(), however this disables the click functionality for a marker.

EDIT 1:It seems that if you explicitly setInteraction(true) for the sublayer the featureClick() event will fire, however the cursor for the marker is not changing to a pointer.



أكثر...
 
أعلى