Render Polygons |
Polygons are rendered filled with the specified brush and outlined with the specified pen. If the brush is null it will not be filled (but may still be outlined). Likewise, if the pen is omitted, the polygon will not be outlined but may still be filled with a valid brush.
If a brushlist is specified, each feature will be assigned one of the brushes. This allows multi-colored layers. A good use for this is with the counties or states layers - creating a pseudo-political map.
If the label is not null then the polygon will be labeled with the text entirely within the polygon if possible.
Syntax | cam RENDER '[' filter{,filter}[:"<country>"{,"<country>"}] ']','[' brushlist ']' [, outline pen [, label]] RENDER '[' filter{,filter}[:"<country>"{,"<country>"}] ']', brush [, outline pen [, label]] |
Example | cam RENDER [land:"USA"],BRUSH<(255,255,200)>, BRUSH<(0,0,255),1> RENDER [parks],BRUSH<!green>,null,LABEL<!myfont> RENDER [states:"Germany","Austria"],[!red, !blue, !purple] |
One or more of the filters listed below, which determine the polygon type(s) to be drawn. Multiple filters must be bracketed and separated by commas.
airports | Airport boundaries |
bays | Bays and large areas of water |
buildings | Buildings and landmarks |
cemeteries | Cemeteries |
cities | Cities |
counties | Counties |
countries | Countries |
global_water | Global waters |
golf_courses | Golf courses |
hospitals | Hospitals |
industrial | Industrial parks |
islands | Islands |
land | Continents and islands |
major_parks | National parks |
military | Military Bases |
native | Indigenous Reservations |
oceans | Oceans |
parks | County and local parks |
runways | Aircraft roads (runways and taxi-ways) |
shopping | Shopping centers |
sports | Sports grounds |
state_parks | State parks |
states | States |
universities | University campuses |
water | Water not touching the ocean |
An optional list of countries, separated by commas. Country names should match those in the Country enumeration, and should be listed in quotation marks. This argument limits the rendering performed by this statement to the countries specified. If no countries are specified, then the statement will render for all countries which were not matched by earlier statements.
One or more brushes, bracketed and separated by commas, with which to fill the polygon.
The pen with which to outline the polygon. Optional, defaults to null (no outline).
Specifies a label to be drawn on the polygon. If a label is required, but not an outline pen, then pen should be passed as null. Optional.