About this Example


This example shows extending the Map with new layers via preconfigured or user-added map service capability URLs (WMS, WFS or TMS). Several services are pre-configured or added by the user ('Add new server...' option).

Usage

Click 'Add Layers' (top left) to bring up the catalogue panel. Then either select an existing service or use 'Add a new server..' to add your own server. Be sure to indicate the serivce type. Only WMS, WFS or TMS is supported.

By using the right mouse-button on each layer item in the left panel, a context menu pops-up. This is layer-type dependent: for WMS-layers, various properties can be viewed, for WFS Vector styling can be applied in order to change the initial random style.

Widgets

A Heron widget GXP_LayerPanel, hr_gxplayerpanel, provides a small wrapper to pure GXP-components and plugins like AddLayers and *Source.

Configuration

Config.js - the complete configuration for this example.

Dependencies

GXP (Heron version!) and Proj4.js in addition to standard required libraries

See also

GXP Catalogue Example

Most code has been added to the specific branch of GXP at and via svn:externals included in Heron SVN. See github.com/boundlessgeo/gxp/issues/230. Via Pull requests we plan to incorporate this functionality in GXP base.