In addition to points, worldKit can draw polygons, lines, and boxes. In the RSS file, instead of specifying coordinates in <georss:point>, a space seperated list of coordinates is provided in either <georss:polygon>
, or <georss:box>
. Each coordinate is a space seperated lat/long pair.
GeoRSS Simple (shown here) and GeoRSS GML are both supported and recommended. The old informal specification of geo:polygon and geo:line is still supported but not recommended.
Here is a simple example of a polygon, a line, and a box in RSS.
As for colors
, the line/polygon/box border will be drawn with the hex color listed in config option <linecolor>
. The polygon/box will be filled with colors specified in <initialplotcolor>
. The alpha of borders and lines is specified in <linealpha>
, and of fill in <fillalpha>
Annotation textboxes are positioned at the first coordinate in the list. Polygons/boxes are filled with 30% transparency, so annotations plotted before are visible. However, those covered annotations are not clickable. One way to adjust this behavior is through the <zlevel>
is set, the zoom will be centered on the first coordinate listed in the line or polygon. Alternately, if <georss:point>
is specified, the zoom will center to that point.