DEM legend 

now displays in legend.
now using "native" REST endpoint to retrieve legend for all (carto, at least) layers