The map module¶
The map module provides map rendering functionality.
>> var Map = require("geoscript/map").Map;
map.Map()
¶
-
class
map.
Map
(config)¶ - Arguments
config –
Object
Configuration object.
Create a rule for rendering features.
Config Properties¶
-
layers
Array
List oflayer.Layer()
objects making up this map.
-
projection
proj.Projection()
Optional projection for the map. If set, calls torender()
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
layer –
layer.Layer()
Add a layer to the map.
-
Map.
render
()¶ Render the map’s collection of layers as an image.
TODO: document render options