added STYLE and VERSION condition to layer based LegendURL