I have written a renderer that keeps text locked to its
initial position on the screen, even while you zoom and
pan the display.
If you would like to use this renderer, you will need to
copy the following 3 files:
from the following FTP site:
and place them in the visad/bom directory of your
visad source tree.
To see a demo of the renderer, compile the files and change
to the parent directory of your visad source tree, and type:
This will display a square with labels at each corner
of the square. You can rotate and pan the display, but
the text will not move. The square will behave as
expected though, as it is not locked to the screen.
Please note that for this renderer to work, you need:
- a tuple type with a domain component mapped to Display.Text.
For example: (latitude, longitude, text)
- a function type with a component in the range mapped
For example: ((latitude, longitude)->(text))
Please pass on any feedback you may have.
Bureau of Meteorology, Australia