Graphics Reference
In-Depth Information
Figure
.
.
Choropleth map
Figure
.
.
Spider diagram
Figure
.
.
Time variation
Figure
.
.
Displaying other layers
an id property for each municipality. he following five functions are defined in the
script and they can be called from menu.html and layercontrol.html by associating
them with index.html upon loading.
setBorder(col)
: Boundaries of cities, towns and villages are set by colors
designatedwithcol.Displayornon-displayoftheboundariesisrealizedbychang-
ing the color of the boundary to black or white, respectively.
fillColor(id,col)
:Fillsthedomains ofthecities, townsandvillages spec-
ified by
id
with the color specified by
col
. Called when a choropleth map is
drawn.
setVisibility(id,visibility)
:Setsthe
visibility
property of
thelayerforinformation associated withthespecified
id
thatcanbemadevisible
or hidden.
setArrow(id1,id2,sw)
:Drawsan arrow with astroke width
sw
fromgov-
ernment o
ce
id1
togovernment o
ce
id2
.Called whendrawingaspiderdia-
gram.
eraseArrows()
:Eraseseveryarrow.