Telogis.GeoBase.Widgets |
Contains all widgets and widget-related functions for the JavaScript GeoStream API. This also acts as a global hash for all instantiated derivations of MapLayers.AbstractLayer, so that if a reference is not kept to such an object, it can be accessed like so:
var Widgets = Telogis.GeoBase.Widgets; var Map = Telogis.GeoBase.Widgets.Map; new Map ({id: 'main_map'}); var map = Widgets ['main_map'];
Name | Description |
---|---|
Widgets.AbstractWidget | A class from which elements such as maps and map controls are derived. |
Widgets.Dock | A map widget designed to contain others, such as a slider and scale, to neatly dock them against one edge of the map. |
Widgets.DockSkin | A near-trivial skin wrapper describing the customizable appearance of a Widgets.Dock. Since such a dock is skinned merely by an unsized background image and a border style, it is not necessary to wait for this skin to load before use. |
Widgets.Map | Represents a displayed map on the page -- the main component of the GeoStream mapping framework. A
MapLayers.TileLayer is implicitly created with the map; other layers can be constructed
later. All layers belonging to the map can be accessed by subscripting the map variable with their IDs, like so:
JavaScript var Map = Telogis.GeoBase.Widgets.Map; var ObjectLayer = Telogis.GeoBase.MapLayers.ObjectLayer; var map = new Map ({id: 'main_map'}); new ObjectLayer ({id: 'pin_layer', map: map}); var layer = map ['pin_layer']; |
Widgets.MapControl | An abstract skinnable map widget. |
Widgets.Scale | A widget to show the distances represented by a map. |
Widgets.ScaleSkin | A simple class that combines all the information describing the appearance of a map-scale widget, and can be used to theme map-scales reasonably painlessly. |
Widgets.Slider | A skinnable widget used to control zoom levels on a map. |
Widgets.SliderSkin | A small class collecting all the customizable appearance information for a zoom / slider map control and presenting some simple methods to help apply it. |