url

creates a URL template for use within layer

mapsense.url(t)

Construct a new URL object with the template t. Elements contained within braces are treated specially within a URL template. {S} is expanded to a host if any hosts are associated with this URL object. {X}, {Y}, and {Z} are expanded to the tile's column, row, and zoom level, respectively.

url.template([x])

Sets or gets the template of the url object. If the argument x is specified, the url's template is set to x, and this is returned. If no argument is specified, the value of the template is returned.

url.hosts([x])

Sets or gets the list of hosts associated with this url object. If the argument x is specified, this method sets the list of hosts which will be used in template substitution, and this is returned. If no argument is specified, this method returns the current list of hosts.