HSLayers.Control.ArgParser (class)

HSLayers.Control.ArgParser

class HSLayers.Control.ArgParser()

HSLayers.Control.ArgParser build on top of <a>OpenLayers.Control.ArgParser</a> and adds some more functionality.

What it adds:

  1. Support for adding markers to map, while the map is initialized:

http://foo/bar/map?markers=[@title%3Dahoj@desc%3Dsvete@lon%3D15.2@lat%3D49.75%3B@title%3Dahoj2@desc%3Dsvete2@lon%3D15.5@lat%3D49.75]

Example usage:

map.addControl(new HSLayers.Control.ArgParser({
       layer: this.vectorLayer,
       handlers: {
           ows: function(url) {
                   // do something with the URL, which comes in the
                   // 'ows' parameter
                   }
           },
       scope: this,
       wmsUseTiles: true}));

Properties

HSLayers.Control.ArgParser.CLASS_NAME
Type :String (static)

HSLayers.Control.ArgParser

HSLayers.Control.ArgParser.handlers
Type :Object (static)

HSLayers.Control.ArgParser

What should happen, if something is found

HSLayers.Control.ArgParser.layer
Type :<a href=”http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/Vector-js.html“>OpenLayers.Layer.Vector</a> (static)

HSLayers.Control.ArgParser

layer for temporary drawings

HSLayers.Control.ArgParser.scope
Type :Object (static)

HSLayers.Control.ArgParser

Scope for the handlers

Methods

HSLayers.Control.ArgParser.setMap(map)

Set the map property for the control.

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

HSLayers.Control.ArgParser.renderCgiMapServer(mapServerParams)

add HSLayers.Layer.MapServer.CgiMapServer layer passed by url param cgimapserver

Arguments:
  • mapServerParams (String) –
HSLayers.Control.ArgParser.renderMarkers()

render markers to the {@link mlayer}

HSLayers.Control.ArgParser.renderVectors(wkt)

Render given vectors to {@link HSLayers.Control.ArgParser.layer}

Arguments:
  • wkt (string) – vector as well known text
HSLayers.Control.ArgParser.renderOWS(url)

Render OWS layer, if the handler is not set

Arguments:

Main Menu


Table Of Contents

Previous topic

HSLayers.CatClient.CatView (class)

Next topic

HSLayers.Control.Attribution (class)

This Page