Skip to content

Instantly share code, notes, and snippets.

@jmwenda
Created June 1, 2016 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmwenda/02aad446dd8b7732f89c73ca534586bc to your computer and use it in GitHub Desktop.
Save jmwenda/02aad446dd8b7732f89c73ca534586bc to your computer and use it in GitHub Desktop.
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