OpenLayers. Control. Graticule

The Graticule displays a grid of latitude/longitude lines reprojected on the map.

Inherits from

Summary
OpenLayers. Control. GraticuleThe Graticule displays a grid of latitude/longitude lines reprojected on the map.
Properties
intervals{Array(Float)} A list of possible graticule widths in degrees.
displayInLayerSwitcher{Boolean} Allows the Graticule control to be switched on and off.
visible{Boolean} should the graticule be initially visible (default=true)
numPoints{Integer} The number of points to use in each graticule line.
targetSize{Integer} The maximum size of the grid in pixels on the map
layerName{String} the name to be displayed in the layer switcher
labelled{Boolean} Should the graticule lines be labelled?.
labelFormat{String} the format of the labels, default = ‘dm’.
lineSymbolizer{symbolizer} the symbolizer used to render lines
labelSymbolizer{symbolizer} the symbolizer used to render labels
gratLayer{OpenLayers.Layer.Vector} vector layer used to draw the graticule on
Constructor
OpenLayers. Control. GraticuleCreate a new graticule control to display a grid of latitude longitude lines.
Functions
drawinitializes the graticule layer and does the initial update
updatecalculates the grid to be displayed and actually draws it

Properties

intervals

{Array(Float)} A list of possible graticule widths in degrees.

displayInLayerSwitcher

{Boolean} Allows the Graticule control to be switched on and off. defaults to true.

visible

{Boolean} should the graticule be initially visible (default=true)

numPoints

{Integer} The number of points to use in each graticule line.  Higher numbers result in a smoother curve for projected maps

targetSize

{Integer} The maximum size of the grid in pixels on the map

layerName

{String} the name to be displayed in the layer switcher

labelled

{Boolean} Should the graticule lines be labelled?. default=true

labelFormat

{String} the format of the labels, default = ‘dm’.  See <OpenLayers.Util.getFormattedLonLat> for other options.

lineSymbolizer

{symbolizer} the symbolizer used to render lines

labelSymbolizer

{symbolizer} the symbolizer used to render labels

gratLayer

{OpenLayers.Layer.Vector} vector layer used to draw the graticule on

Constructor

OpenLayers. Control. Graticule

Create a new graticule control to display a grid of latitude longitude lines.

Parameters

options{Object} An optional object whose properties will be used to extend the control.

Functions

draw

draw: function()

initializes the graticule layer and does the initial update

Returns

{DOMElement}

update

update: function()

calculates the grid to be displayed and actually draws it

Returns

{DOMElement}

draw: function()
initializes the graticule layer and does the initial update
update: function()
calculates the grid to be displayed and actually draws it
Controls affect the display or behavior of the map.
Close