Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
infowindow = cdb.vis.Vis.addInfowindow(map, publishedSublayer, ['cartodb_id', 'cdb_list'], {
infowindowTemplate: $('#infowindow_template').html(),
templateType: 'mustache'
});
//infowindow.model.set('template', $('#infowindow_template').html());
//publishedSublayer.infowindow.set('template', $('#infowindow_template').html());
publishedSublayer.on('featureOver', function(e, latlng, pos, data) {
//publishedSublayer.infowindow.show();
//$('#map').append(infowindow.render().el);
//$('#map').css('cursor', 'pointer');
//alert("Hey! You hovered " + data.cartodb_id);
//console.log(publishedSublayer);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.