Chapter 6. Scales

Scales are objects which convert between sets of coordinates. The standard applet understands only one kind of scale, linear:scale type. Special purpose versions of the applet for mapping may include others to handle different map projections.

There is currently no library of JavaScript related to scales themselves. Rather, the applet creates three scales which it uses internally, for instance to position markers.

Scale Types

Some calls and applet parameters must be told which of these scales to use:

Table 6-1. Scale Types

scaledescription
screen:scale typeThe position in pixels on the screen.
image:scale typeThe position in pixels on the image being displayed. This may differ from screen coordinates if the image has been scaled to fit.
world:scale typeReal-world coordinates. If you specify the area which an image represents in the real world (for instance if it is a map or floor plan), this scale can be used to, for instance, place markers at known real-world coordinates.