POI Plugin Description
Used to display point data with a text label on the map. Currently points are queried through a tomcat postgis setup, but using a wfs server like mapserver is also possible. (WFS Version : POI WfsVersionPoi?)
plugin_type : poi
plugin_parameters :
usage
<param name="PluginType?_1" value="poi"> <param name="PluginParam?_1" value="P -parameter_name parameter_value -parameter_name parameter_value ...">
parameters
- -position (ie. AL,BR,A,L...)
o [A(above)|M(middle)|B(below)|L(left)|C(center)|R(right)]
- -status
o [1|0]
- -pinpoint (draw a line down from the label to the ground)
o [1|0]
- -jspquery (make requests to a servlet, works with parameter jspurl)
o [1|0]
- -numicons
o [int]
- -iconprefix (path and file prefix to icons ie. /ptolemylib/icons/icon_)
o [String]
- -mindistance (min distance of icon from camera ie. 75)
o [int]
- -encoding
o [UTF-8|SJIS| ...]
- -bgcolor (RGBA, 0-255)
o [int:int:int:int]
- -fontcolor (RGBA, 0-255)
o [int:int:int:int]
- -bordercolor (RGBA, 0-255)
o [int:int:int:int]
- -minalt
o [int]
- -maxalt
o [int]
- -jspurl (if querying a servlet, path to servlet)
o [String]
- -layer (if querying a servlet, table name)
o [String]
- -iconquerywidth (extent of query to servlet)
o [int]
Interact with plugins through javascript by using document.getElementById("ptolemyAppletId").pluginAction(plugin_id,pluginAction,params);
pluginAction
- setIconIdFilter
- clearHighlights
- removeHighlightIds
- addHighlightIds
- refresh
- setCenterPoint
- status
- getInfo
- setInfo
- putIcon
- removeIcon
Notes
IMPORTANT
If writing plugin over several lines e.g as follows
<param name="PluginParam?_1" value="P -jspquery 0 -status 1 -numicons 10 -iconprefix /JetStreamLib/icons/demo_icons/icon_1_ -mindistance 75 -encoding UTF-8 -bgcolor 0:204:153:150 -fontcolor 255:255:255:255 -bordercolor 100:100:250:0 -minalt 0 -maxalt 0 -position RM -pinpoint 1 ">
There must be an empty space at the end of each line, before going onto the next line.
