Created
June 1, 2016 16:53
-
-
Save jmwenda/02aad446dd8b7732f89c73ca534586bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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