Is there a easy way (maybe even generic solution) to trigger opening the InfoWindow of Marker 1 from inside the InfoWindow of Marker 0?

The goal would be to «jump» from marker to marker right from inside the InfoWindows (à la «Next Location»-Links).

1 Answer 1


No standard solution, you should get the position and id's of your features and bind something like this:

function openInfowindow(layer, latlng, cartodb_id) {
  layer.trigger('featureClick', null, latlng, null, { cartodb_id: cartodb_id}, 0);

as is shown here on this block. You should build your own infowindow and disable JavaScript sanitization on it so you can have your functionality attached to them.

Maybe you want to consider using Odyssey.JS since it provides a similar functionality?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.