javascript - Is it possible to pass parameters to html template in cartodb -
i want pass value obtained using featureclick option customized infowindow template.
sublayer.on('featureclick', function(e, latlng, pos, data, layer) { var hello=data.name; alert("mouse clicked polygon data: " + hello); }); sublayer.infowindow.set('template', $('#infowindow_template').html());
}).on('error', function() { console.log("some error occurred"); });
i want pass value of variable 'hello' info-window template. possible?
Comments
Post a Comment