HSLayers.MapPanel (class)

HSLayers.MapPanel

class HSLayers.MapPanel(config)

MapPanel with div for OpenLayers.Map object. You can initialize the Map object later using MapPanel.body.dom.id for it’s initialization.

param Object config:
 configuration object of the panel
param String[] config.components:
 [“permalink”,”searchfield”,”wmc”,”history”] array of panel visible components.

Example usage:

var mapPanel = new HSLayers.MapPanel();
var map = new OpenLayers.Map(mapPanel.body.dom);
mapPanel.setMap(map);

Properties

class can be stored.

Possible values: permalink,searchfield,wmc,history

use the HSLayers.MapPanel.setMap() method for setting this attribute

class can be stored.

class can be stored.

class can be stored.

HSLayers.MapPanel.attributionContainer
Type :Ext.Container (static)

HSLayers.MapPanel

Container, where later the HSLayers.Control.Attribution() class can be stored.

HSLayers.MapPanel.components

HSLayers.MapPanel

Compoments, which should be available, when the MapPanel starts. Possible values: permalink,searchfield,wmc,history

Default Value:
[“permalink”]
HSLayers.MapPanel.infoContainer
Type :Ext.Container (static)

HSLayers.MapPanel

Container, where some info you need to display

HSLayers.MapPanel.map
Type :OpenLayers.Map (static)

HSLayers.MapPanel

The map object use the HSLayers.MapPanel.setMap() method for setting this attribute

Type :Ext.Container (static)

HSLayers.MapPanel

Container for later placement of HSLayers.Permalink()

HSLayers.MapPanel.projectionSwitcherContainer
Type :Ext.Container (static)

HSLayers.MapPanel

Container, where later the HSLayers.Control.ProjectionSwitcher() class can be stored.

HSLayers.MapPanel.scaleLineContainer
Type :Ext.Container (static)

HSLayers.MapPanel

Container, where later the Open.Control.ScaleLine class can be stored.

HSLayers.MapPanel.scaleSwitcherContainer
Type :Ext.Container (static)

HSLayers.MapPanel

Container, where later the HSLayers.Control.ScaleSwitcher() class can be stored.

HSLayers.MapPanel.scope

HSLayers.MapPanel

Scope of the searchField

Default Value:
this object
HSLayers.MapPanel.searchField
Type :Ext.form.TriggerField (static)

HSLayers.MapPanel

Field for searching (usually cities)

HSLayers.MapPanel.wmcManager

HSLayers.MapPanel

wmcManager instance

Main Menu


Table Of Contents

Previous topic

HSLayers.LayerSwitcher.TreeLayerNode (class)

Next topic

HSLayers.MapPortal (class)

This Page