adds error handling to navy leaflet example

This commit is contained in:
Francisco Dans 2015-04-15 10:59:09 +02:00
parent 7626ebe3b6
commit 8d8d65050d

View File

@ -54,6 +54,11 @@
table : 'ow',
cartocss: CARTOCSS
});
torqueLayer.error(function(err){
for(error in err){
console.warn(err[error]);
}
});
torqueLayer.addTo(map);
torqueLayer.play()
</script>