The map module

The map module provides map rendering functionality.

>> var Map = require("geoscript/map").Map;

map.Map()

class map.Map(config)
Arguments
  • configObject Configuration object.

Create a rule for rendering features.

Config Properties

layers

Array List of layer.Layer() objects making up this map.

projection

proj.Projection() Optional projection for the map. If set, calls to render() will result in a map image in this projection. If not set, the projection of the first layer will be used.

Properties

Map.projection

proj.Projection() The projection for rendering layers.

Methods

Map.add()
Arguments

Add a layer to the map.

Map.render()

Render the map’s collection of layers as an image.

TODO: document render options