Circles, rectangles and polygons in the map file are propagated in the Z direction into cylinders, cuboids and polygonal prisms. Meta-information may be provided in the form of "!" tagged comments in the mapfile to alter the default color, height, and base elevation of the objects. Cones or spheres may be created instead of cylinders.
Using Thomas Boutell's mapedit, one can include comments and
meta-commands in the comment field, one per line. Mapedit adds a leading
"#", so the metacommands are entered eg.
IMAP rectangles (rect) are translated to VRML Cube, using the current base, height and color settings.
IMAP polygons (poly) are translated to a prism (IndexedFaceSet) in VRML, using the current base, height and color.
IMAP circles are translated to VRML Cylinder. If the cone or sphere metacommands are used, VRML Cone or Sphere is used instead.
IMAP comments (regular comments, not metacommands) are translated to VRML Info nodes.
If the anchor metacommand is used, the IMAP URL is translated to WWWAnchor. Note that URLs must be absolute for some browser/viewer combinations.
| Command | Function |
|---|---|
| #!color xxx | Changes default color to xxx |
| #!height nnn | Changes default height to nnn |
| #!base nnn | Changes default base to nnn |
| #!anchor | Enables anchor for following object only |
| #!cone | Creates cone from circle |
| #!sphere | Creates sphere from circle |
| #!scale | Scales IMAP x,y co-ordinates to VRML co-ordinates |
| #!offset | X,Y offsets added after scaling |
| #!landscape | Rotates Y axis vertical and adds "daylight" |
| #!rotation | Rotates following element only |
Vancouver Webpages