Render Streets |
Render for streets can take either a single pen or a bracketed list of pens. Using multiple pens allows you to draw complex line styles.
This statement also optionally takes a label object to specify how to label the streets, an arrow object if one-way arrows are desired, and a shield map to specify how to display highway shields.
RENDER '[' filter ']', '['pen list ']' [, label [, arrow [, (shield | shieldmap)]]] RENDER '[' filter ']', pen [, label [, arrow [, (shield | shieldmap)]]]
RENDER [super],[PEN<(0,0,0),5>,PEN<(200,200,200),3>], LABEL<!myfont:upcase>,null, SHIELD<num_only,!white_text,ICON<us_interstate>>
One or more of the filters listed below, which determine the street type(s) to be drawn. Multiple filters must be bracketed and separated by commas.
Filter | Description |
---|---|
super | Super highways |
major | Major highways |
secondary | Secondary highways |
arterial | Arterial roads |
surface | Surface streets |
restricted | Restricted access roads (such as Residents Only lanes) |
pedestrian | Pedestrian walkways |
ferry | Water ferry routes |
Street filters can be augmented with a comma separated list of options. These are separated from the above filters with a colon:
RENDER [super,major,secondary:ramp]
This would match all streets that are either super, major or secondary highways, and that are also ramps.
The following options can be added to street filters:
ramp | Only match streets that are freeway ramps. |
^ramp | Do not match streets that are freeway ramps. |
tollway | Only match streets that are tollways. |
^tollway | Do not match streets that are tollways. |
tunnel | Only match streets that are tunnels. |
^tunnel | Do not match streets that are tunnels. |
The pen or list of pens to use when rendering the street. When a list of pens is specified, all the statements within the block are executed once for the first pen in the list, then once for the second pen in the list, and so on until all of the pens have been rendered.
The label to apply to the rendered streets. May be passed as null. Optional, defaults to null (no label) .
The arrow to use for one-way streets. May be passed as null. Optional, defaults to null (no arrows) .
A shield or shieldmap object to use for rendering shields (where appropriate). Optional, defaults to null (no shields) .
An offset value to use for drawing the line offset(moved to the left or right) from the link depending on the link direction and driving side. Allowing two separate lines to be rendered for each side of the road. This is applied to multi digitized links, if singleDigitizedStreetOffset is not set it is also applied to single digitized links. Optional, defaults to 0 .
A singleDigitizedStreetOffset value used for drawing the line offset(moved to the left or right) from the link depending on the link direction and driving side. Only applies for single digitized links. Optional, defaults to offset .