HSLayers.OWS (class)

HSLayers.OWS

class HSLayers.OWS(config)

Base class for WMS, WFS, WPS and other W*S parsers

param Object config:
 

Properties

use the {setMap} method for setting this attribute

HSLayers.OWS.defaultProjection
Type :string (static)

HSLayers.OWS

Default projection, supported by posssibly all wms serveres

Default Value:
“epsg:4326”
HSLayers.OWS.description
Type :string (static)

HSLayers.OWS

Description of this webservice

HSLayers.OWS.initComponent

HSLayers.OWS

Init component method of Ext.Panel, add the “clearPanel” event

HSLayers.OWS.managerTitle
Type :string (static)

HSLayers.OWS

Title for this manager

HSLayers.OWS.map

HSLayers.OWS

The map object use the {setMap} method for setting this attribute

HSLayers.OWS.owsUrl
Type :string (static)

HSLayers.OWS

URL of the OWS service

HSLayers.OWS.projections
Type :array of string (static)

HSLayers.OWS

list of supported projections

HSLayers.OWS.scope
Type :object (static)

HSLayers.OWS

Scope for #onLayerAdded method

HSLayers.OWS.service
Type :string (static)

HSLayers.OWS

Service type (WMS, WFS)

HSLayers.OWS.serviceField
Type :<a href=”http://www.extjs.com/deploy/dev/docs/?class=Ext.form.Field“>Ext.form.ComboBox</a> (static)

HSLayers.OWS

textfield for the service type

HSLayers.OWS.serviceIcon
Type :string (static)

HSLayers.OWS

Icon to be displayed in services tree

HSLayers.OWS.services
Type :object=[] (static)

HSLayers.OWS

List of Services (Layers for WMS or WFS, Process for WPS ...)

HSLayers.OWS.title
Type :string (static)

HSLayers.OWS

Title of this webservice

HSLayers.OWS.toolTips

HSLayers.OWS

Property: toolTips

HSLayers.OWS.urlsStore
Type :<a href=”http://www.extjs.com/deploy/dev/docs/?class=Ext.data.ArrayStore“>Ext.data.ArrayStore</a> (static)

HSLayers.OWS

urls store

HSLayers.OWS.urlTextField
Type :<a href=”http://www.extjs.com/deploy/dev/docs/?class=Ext.form.Field“>Ext.form.Field</a> (static)

HSLayers.OWS

textfield for the initial url

HSLayers.OWS.version
Type :string (static)

HSLayers.OWS

Version of this webservice

Methods

#getCapabilities

To be redefined by each service

To be used by application

layer/featue/process/coverage To be redefined by each service

information. At the end, <a href=”http://www.extjs.com/deploy/dev/docs/?class=Ext.QuickTips“>Ext.QuickTips</a>.init is called

HSLayers.OWS.connect()
Called, when the button is clicked. Cleans the input URL and call

#getCapabilities

HSLayers.OWS.getCapabilities()

Formulate GetCapabilities URL and run Ajax request.

HSLayers.OWS.onCapabilitiesArrived(data)

What is called, when getCapabilities response arrived

Arguments:
  • data (XMLDOM) – http ajax response in text form
HSLayers.OWS.parseCapabilities(text)

To be adjusted by different OWS Managers

Arguments:
  • text (String) – text to be parsed
HSLayers.OWS.clearXMLText(text)

Clear comments and other stuff from returned capabilities response

Arguments:
  • text (String) – input XML as text
Returns:

cleared XML in text form (not DOM)

Return type:

String

HSLayers.OWS.makePropertiesForm()

Create properties form, different for each service, empty.

HSLayers.OWS.makeTreePanel()

Render the tree of services (layers, features)

HSLayers.OWS.makeServicesTree()

Make tree with services

HSLayers.OWS.getServiceIcon()

Return URL with icon for service

Returns:url with icon
Return type:String
HSLayers.OWS.makeServicesNodes(service, <a)

Create the node for particular service (layer,feature,process, ...)

Arguments:
HSLayers.OWS.onCheckAllButtonClicked(b, e)

Check all button clicked

Arguments:
  • b (Ext.Button) – button
  • e (Event) – event
HSLayers.OWS.onToMapClicked()
To Map button clicked handler

To be redefined by each service

HSLayers.OWS.onLayerAdded()
Layer is in map, do something

To be used by application

HSLayers.OWS.onLayersAddedDone()

After layer added the map

HSLayers.OWS.formatNodeText(service)
Return HTML formated string for the specified

layer/featue/process/coverage To be redefined by each service

param object service:
 
returns:title
rtype:string
HSLayers.OWS.makeToolTips()
Append tool tips to each service (e.g. wms layer) with abstract

information. At the end, <a>Ext.QuickTips</a>.init is called

HSLayers.OWS.checkMapProjection(layerPrjs, mapPrj)

Check, if the layers projections do match map projection

Arguments:
  • layerPrjs (array) – strings of layer projections
  • mapPrj (OpenLayers.Projection) – map projections
Returns:

layer can be displayed, if True

Return type:

boolean

HSLayers.OWS.setMap(map)

Set {@link HSLayers.OWS.map} object

:param <a href=”http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html“>OpenLayers.Map</a> map:

Returns:
Return type:None

Main Menu


Table Of Contents

Previous topic

HSLayers.MapViewer.ToolsPanel (class)

Next topic

HSLayers.OWS.WCS (class)

This Page