Leaflet tile layer with functionally defined URL and support for promises.