Writer Overview
The Flash writer creates and writes feature data to a SWF file specified by the DATASET
keyword. The writer searches the mapping file for the <WriterKeyword>_DATASET keyword in the mapping file. This keyword is required to be in the mapping file. An old SWF file in the folder with the same file name is overwritten with the new feature data. A typical mapping file fragment specifying the output SWF file looks like:
FLASH_DATASET /usr/data/flash/myfile.swf
The <WriterKeyword>_MAINTAIN_ASPECT keyword is another optional keyword. It should be followed by a value of YES or NO. By default, the value is set to YES. A YES indicates that the original map aspect will be maintained to fit within the destination defined bounding box. This means that the entire destination bounding box defined may not used. Alternatively, the value NO causes the original map to be clipped by the box if it is too large.
Note: Smaller frames are not expanded to fill the bounding box.
The <WriterKeyword>_BACKGROUND_COLOR keyword is another optional keyword. It should be followed by a string with three comma separated values from 0 to 255 indicating the intensity values of red, green and blue respectively. This color is then set as the background color of the movie. The default color is white.
The <WriterKeyword>_ANIMATE_DRAW keyword is another optional keyword. It should be followed by a value of YES or NO. By default, the value is set to YES. A YES indicates that the features processed are placed into separate frame so that at drawing time the image draws features to the screen progressively and can be observed by the user. Alternatively, the value NO causes the features to be drawn on the same frame which is loaded all at once, with no display to the user until it is complete, at which point it is displayed.
Keyword |
Description |
DATASET |
The file that will be written to Range: Valid File Name Default: None Optional: No |
MAINTAIN_ASPECT |
Specifies whether or not the source map dimensions will be kept or stretched to fit to the output bounding box. Range: YES or NO Default: YES Optional: Yes |
RESOLUTION_X |
Specifies the maximum Flash units (1 unit = 1/20 pixel) for the x dimension of the output map Range: 2000 -24000 Default: 16000 Optional: Yes |
RESOLUTION_Y |
Specifies the maximum Flash units (1 unit = 1/20 pixel) for the y dimension of the output map Range: 2000 - 18000 Default: 12000 Optional: Yes |
BACKGROUND_COLOR |
Specifies the color of the background of the movie. Range: String(0..255, 0..255, 0..255) Default: White Optional: Yes |
ANIMATE_DRAW |
Specifies whether to animate the drawing process of just make the user wait for it to be entirely done before displaying it on the screen. Range: YES or NO Default: YES Optional: Yes |