Make legend URL template configurable