Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
140 lines (103 sloc) 3.49 KB

GeoJSON Extension for the MapSetJSON Specification

Trey Smith (Carnegie Mellon University)
Pre-0.1 draft
31 Jan 2012
Canonical URL of this document
Further information

1   Introduction

This extension adds the ability to include GeoJSON map layers in a map set. It extends the MapSetJSON Core Specification.

This specification refers to the MapSetJSON Include Extension.

2   Examples

To declare that a MapSetJSON document uses this extension:

"extensions": {
  "geojson": ""

An example GeoJSON node:

  "type": "geojson.GeoJSON",
  "name": "Fire Vehicle Locations",
  "url": ""

3   Definitions

The GeoJSON file format is defined by the GeoJSON Format Specification.

4   GeoJSON Class

A GeoJSON object ("type": "geojson.GeoJSON") declares a map layer that links to GeoJSON content. The behavior of the GeoJSON object is modeled on the behavior of the MapSetJSON Include Extension. The GeoJSON subdocument is loaded in the same way as a MapSetJSON subdocument.

The GeoJSON Format Specification does not define how GeoJSON content should be styled in a map. Viewers may implement any appropriate styling, and may wish to draw their default styling from a reference implementation such as the OpenLayers GeoJSON implementation.

  • Future versions of this extension may define the behavior if the url member has a fragment identifier starting with a hash mark #.
  • Future versions of this extension may define introspection capabilities within GeoJSON documents.
  • Future versions of this extension may define a styling mechanism.
Abstract class:
Inherits from:

(No additional members defined.)

4.1   GeoJSON Example

  // members inherited from Object
  "type": "geojson.GeoJSON",
  "id": "...",

  // members inherited from Node
  "name": "...",
  "crs": { (CRS object ) },
  "bbox": [
    [-180.0, -90.0],
    [180.0, 90.0]
  "description": "...",
  "subject": [
    "(Key word 1)",
  "coverage": "(Human readable description of temporal or spatial coverage)",
  "creator": "(Name of entity)",
  "contributors": [
    "(Name of entity 1)",
  "publisher": "(Name of entity)",
  "rights": "Copyright (C) ...",
  "license": " ...",
  "morePermissions": "You may also ...",
  "dateCreated": "2012-01-30T12:00:00Z",
  "dateModified": "2012-01-30T12:00:00Z",
  "dateAdded": "2012-01-30T12:00:00Z",

  // members inherited from Layer
  "show": false,
  "drawOrder": 1000,
  "master": false,
  "url": "",

  // members inherited from folder.FolderLike
  "open": false,
  "visibilityControl": "check"