Class: Graticule

ol.control. Graticule


new Graticule( [_ol_control_])

Draw a graticule on the map.

Parameters:
Name Type Argument Description
_ol_control_ Object <optional>

options.

- projection {ol.projectionLike} projection to use for the graticule, default EPSG:4326 
- maxResolution {number} max resolution to display the graticule
- style {ol.style.Style} Style to use for drawing the graticule, default black.
- step {number} step beetween lines (in proj units), default 1
- stepCoord {number} show a coord every stepCoord, default 1
- spacing {number} spacing beetween lines (in px), default 40px 
- borderWidth {number} width of the border (in px), default 5px 
- margin {number} margin of the border (in px), default 0px

Extends

Methods


setMap(map)

Remove the control from its current map and attach it to the new map.

Parameters:
Name Type Description
map _ol_Map_

Map.