Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Overview Map

Lorenzo Pini edited this page Mar 13, 2015 · 5 revisions

This plugin wraps the OpenLayers OverviewMap control in order to provide a mini preview of the current map extent.

Configuration

The most complete configuration of this tool is:

{
    "ptype": "gxp_overviewmap",
        "maximized": true,
    "layers": [{
	"wmsserver":"http://localhost:8080/geoserver/wms",
	"title":"States",
	"parameters":{
		"layers":"topp:states" 
	},
	"options":{
		"isBaseLayer": true
	}
    }, {
	"wmsserver":"http://localhost:8080/geoserver/wms",
	"title":"Roads",
	"parameters":{
                "transparent": true,
		"layers":"topp:roads"
	},
	"options":{
		"isBaseLayer": false
	}
    }]
}

The basic configuration is:

{
    "ptype": "gxp_overviewmap"
}
  • ptype: The plugin name : gxp_overviewmap.
  • layers: The layers to use inside the preview. Make attention to the layers configuration ('isBaseLayer' and 'transparent') in order to correctly show each of them inside the preview.
Clone this wiki locally