Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Options

Matt Conway edited this page Jan 27, 2012 · 8 revisions

Here are some options you can pass to Transit Board Hotel

Config Options

destinations: required. A comma-separated list of Destination IDs to be displayed on this appliance. e.g., 0,1 would show travel to Pioneer Square and Portland City Hall (if possible).

origin: required. A lat,lon (WGS84 or NAD83) of the location of this appliance. As exact as possible.

originName: required. The human-readable name of the origin. e.g. Portland International Airport, Portland, OR.

stylesheet: optional. A custom stylesheet. Can be specified multiple time for multiple custom stylesheets.

imageTimeout: optional. The timeout for the attraction slideshow.

slideshow: the URL for a slideshow to show when there are no destinations available.

slideshowTimeout: the time, in seconds, of each slide in the no destinations slideshow.

Map Options

cloudmadeStyle: optional. The CloudMade style ID, default is 46244.

tileUrl: optional. Specify an alternate tile URL, e.g. http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png. {s} will be replaced with a, b, c or d to allow more simultaneous browser requests, {z} is zoom level 0-18, {x} and {y} are self-explanatory.

tileAttr: optional. Attribution for the above tile URL. Only used if tileUrl is specified.

maxZoom: optional. The maximum zoom level for the map. Default 16, maximum 18.

CC-BY 3.0 by Portland Transport.