I am unable to remove the legend from a CartoDB layer. I have passed legends: false
in createLayer
options but with no luck. Below the code i used :
cartodb.createLayer(map, BikeTrails)
.on('done', function(layer) {legends:false
layerBikeTrails = layer;
L.control.layers(null, {
'Dedicated Bike Lanes': layerBikeLanes,
'Bike Share Toronto': layerBikeShare,
'Bike Stores': layerBikeStores,
'Access to Multipurpose Trails': layerBikeTrails
})
.addTo(map);