![]() | The Information Overlaid Toolkit: ; Referance Manual Edition 2.4, for Information Overlaid Version 2.4; 27th April 2004 | ![]() | ||
|---|---|---|---|---|
| Prev | Next | |||
The ii_maps.js library provides a basis for mapping applications. It implements abstractions called atlases, mapsets and levels to represent collections of maps at different levels of detail. There is more detail on these concepts in the separate mapping documentation.
The centre and area covered by the currently displayed map, in real world coordinates.
Picks an initial map and displays it. The arguments are optional. If thumbnail_applet is given it should be an Easel applet which will display a smaller map with a rectangle showing a larger area. If scale_location is given it should either be an HTML image object which will be used to display a scale for the map (if available) or a string number,number giving a position in the applet where the scale will be overlaid on the map.
Select the best map to show the given area from the current atlas and load it.
Scrolls to a map at a position relative to the current one given by dx and dy. The parameters are given as proportions of the current maps' size. For instance passing 0.5 for dx will move half a map width East.
Checks if a maps_goto_delta call with those arguments would fetch a different map. Can be used to grey out scroll buttons etc.
Returns the next level of maps down, or null if we are on the lowest level.
Returns the next level of maps up, or null if we are on the highest level.
Return a magic string which names the current map and which can be used to come back to it using maps_recall.
Goes back to the map named by mapdescription which was previously returned by maps_remember.
You can define the following callbacks to be informed when certain events happen.