Catalog Example

displayLayer
getLegend
can be bound to jQuery for instance, I'll adapt.