Wiki Markup |
---|
{scrollbar} |
Table of Contents | ||||
---|---|---|---|---|
|
...
Related TAG: $SUMMARY(summaryId)$
Creating a summary
The map itself is an existing file and can be created in several ways. An image processing software package (like Paint Shop Pro) can create a 'screendump' from the map section of The FEWS-Explorer. The FEWS-Explorer itself has some hidden features which can be used as well. The \ [F12\] button can be used for: Wiki Markup
Copy current map to a .png file (\[F12\]\+ L);Wiki Markup Wiki Markup - Copy current map extent to the clipboard (\[F12\]\+ K);
The \ *.png file is named "currentmap.png" and can be found in the /bin directory of your system. The map extent (rectangle containing real world coordinates) can be pasted into any application by choosing Edit-Paste or \ [Ctrl\]\+ V. These four coordinates describing the extent of your map picture in world coordinates are needed in the declarations section of the report ModuleConfigFile where you declare this summary. Wiki Markup
Remark: Every time you use the above mentioned \ [F12\] features, the png file in the /bin directory and the clipboard is overwritten\! In making series of maps you should copy/rename your png file after using this option. You should also paste the map extent in a text editor or spreadsheet directly before repeating the operations with another map extent in the FEWS-Explorer. Wiki Markup
Configuring a summary
Declaration section
...
- File details like width and height can be retrieved using image processing software.
- The x0 and y0 elements are margins/shifts of the position of the map compared to the left-upper point of the report (e.g. an A4-sheet). This left-upper point is (0,0). The x0/y0 refer to the left-upper point of the image.unmigrated-wiki-markup
- The mapFormat is used for positioning the map on the page (relative to all other content) and therefor it is placed in a so-called \ [DIV\] tag. This type of html tag puts everything which is configured within that tag in that position on the page. The following table explains the references of the number in this format:
Position | Type | Variable |
0 | number | Absolute x position of map image. |
1 | number | Absolute y position of map image. |
2 | number | Image width. |
3 | number | Image height |
4 | number | Image filename. |
5 (optional) | number | Reference to a clickable map (#clickmap by default) |
...
When adding the string "usemap="{5}" to the mapFormat (see above) the outcome in the html page will be (printed in bold).
The part describing the hot spots for this map are defined in the \ [map\] tag. In this example below, three areas are 'clickable'. Every hot spots links to another html page in the set of reports. Wiki Markup
No Format |
---|
<img border="0" src="northeast.png" width="503" height="595" *usemap="#clickmap"*> <!-- Here the clickable map starts: SHOULD BE IN THE TEMPLATE --> <map name="clickmap"> <area alt="Northumbria Area" href="northumbria/area_status.html" shape="polygon" coords="138, ...,...,34"> <area alt="Dales Area" href="dales/area_status.html" shape="polygon" coords="266, ..., ..., 285"> <area alt="Ridings Area" href="ridings/area_status.html" shape="polygon" coords="359, ..., ..., 379"> </map> |
...