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.

options.projection ol.projectionLike

projection to use for the graticule, default EPSG:4326

options.maxResolution number

max resolution to display the graticule

options.style ol.style.Style

Style to use for drawing the graticule, default black.

options.step number

step beetween lines (in proj units), default 1

options.stepCoord number

show a coord every stepCoord, default 1

options.spacing number

spacing beetween lines (in px), default 40px

options.borderWidthwidth number

of the border (in px), default 5px

options.marginmargin number

of the border (in px), default 0px

Extends

Methods


getCanvas()

Get canvas overlay

Inherited From:

getFill()

Get fill

Inherited From:

getStroke()

Get stroke

Inherited From:

getStyle()

Get style

Inherited From:

getTextFill()

Get text fill

Inherited From:

getTextFont()

Get text font

Inherited From:

getTextStroke()

Get stroke

Inherited From:

setMap(map)

Remove the control from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.

Parameters:
Name Type Description
map o.Map

Map.

Inherited From:

setStyle()

Set Style

Inherited From:
Overrides: