Better fix for WMS legends, refs: geomoose/geomoose#51