The Graticule displays a grid of latitude/longitude lines reprojected on the map.
| OpenLayers. | The Graticule displays a grid of latitude/longitude lines reprojected on the map. |
| Properties | |
| autoActivate | {Boolean} Activate the control when it is added to a map. |
| intervals | {Array(Float)} A list of possible graticule widths in degrees. |
| displayInLayerSwitcher | {Boolean} Allows the Graticule control to be switched on and off by LayerSwitcher control. |
| 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, default is set by {OpenLayers.Lang}. |
| 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. | Create a new graticule control to display a grid of latitude longitude lines. |
| Functions | |
| destroy | |
| draw | initializes the graticule layer and does the initial update |
| activate | |
| deactivate | |
| update | calculates the grid to be displayed and actually draws it |
{String} The name to be displayed in the layer switcher, default is set by {OpenLayers.Lang}.
{OpenLayers.Layer.Vector} vector layer used to draw the graticule on
destroy: function()
initializes the graticule layer and does the initial update
draw: function()
activate: function()
deactivate: function()
calculates the grid to be displayed and actually draws it
update: function()