splashblot / dronedb

Location Intelligence & Data Visualization tool
http://carto.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add raster layers to layer selector view #93

Closed apercas closed 6 years ago

apercas commented 6 years ago

Context

When adding a layer selector, this doesn't include raster layers

Steps to Reproduce

  1. Go to a map, check the layer selector option screen shot 2017-12-05 at 15 39 05

Current Result

It only shows vector type layers

screen shot 2017-12-05 at 15 44 29

Expected result

If there's a raster layer we can toggle, it should be included there

apercas commented 6 years ago

Main issue here is that raster layers' models don't have any legend attribute as vector layer do.

apercas commented 6 years ago

Done here: https://github.com/splashblot/cartodb.js/commit/bbf85b62e6c76ba97ed16488d2ab725fea6670c1