nunaliit2-js: Enhance layer selector so that symbols of layer are
reflected correctly in legend.

Issue #251