Skip to content
Erik Vullings edited this page Mar 6, 2016 · 1 revision

You can use different data sources to create a layer in csWeb. Although the default format is GeoJSON, which supports filtering, styling and statistical info, we also support several other formats (in the source code, look at csComp/services/layer/sources).

  • DatabaseSource
  • GeoJsonSource
  • GridDataSource: supports all kinds of GRID files, a.o. ESRI ASCII grid file
  • KmlDataSource
  • RssDataSource
  • TileLayerSource
  • VectorTileSource
  • WmsSource

Special versions

  • HeatmapSource
  • HierarchySource
  • NightDayDataSource

These are explained in more detail below.

GeoJSON

ESRI GeoJSON

Tile layer (with UTF Grid)

The url in below example points to the tile layer source, delivering png tiles in this case. However, after the tile url, there is an optional second url, separated by the pipe | symbol, pointing to the UTF grid layer.

Example

"layers": [{
            "id": "bikes",
            "title": "Bicycles in Amsterdam",
            "description": "Source...",
            "enabled": true,
            "dynamicResource": false,
            "defaultFeatureType": "bicycle",
            "typeUrl": "data/resourceTypes/bicycle.json",
            "type": "tilelayer",
            "url": "http://localhost:8888/road/{z}/{x}/{y}.png|http://localhost:8888/road/{z}/{x}/{y}.grid.json",
            "opacity": 75,
            "isDynamic": false
        }]

ESRI ASCII Grid layer