cgxp.plugins.OSMSource

ptype
cgxp_osmsource
class cgxp.plugins.OSMSource(config)

Plugin for using OpenStreetMap layers with gxp.Viewer instances.

Available layer names are “mapnik” and “osmarender”

Example Use

The configuration in the sources property of the gxp.Viewer is straightforward:

"osm": {
    ptype: "cgxp_osmsource"
}

A typical configuration for a layer from this source (in the layers array of the viewer’s map config option would look like this:

{
    source: "osm",
    name: "mapnik"
    ref: "mapnik",
    group: "background"
}

Table Of Contents

Previous topic

cgxp.plugins.MyPosition

Next topic

cgxp.plugins.Permalink

This Page

Fork me on GitHub