| The Information Overlaid Toolkit: ; Referance Manual Edition 2.2, for Information Overlaid Version 2.3; 25th October 2002 | ![]() | ||
|---|---|---|---|
| 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 doculentation.
Additionally, the library provides simple methods for moving between maps without knowing the details of the maps available.
The mapset from which the current map was selected.
The level from which the current map was selected.
The center and area covered by the currently diplayed 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 overlayed on the map.
Looks through all loaded atlases for the mapset named name.
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.
Get a more detailed map. If a rectangle has been dragged on the map, try to zoom to show that area as well as possible, otherwise zoom into the center of the map.
Get a map of a wider area.
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.
Switch to this atlas.
Switch to the named atlas.
Switch to the first loaded atlas.