new ol.Graticule(opt_options) experimental
Render a grid for a coordinate system on a map.
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Methods
-
getMap(){ol.Map} experimental
src/ol/graticule.js, line 281 -
Get the map associated with this graticule.
Returns:
The map.
-
getMeridians(){Array.<ol.geom.LineString>} experimental
src/ol/graticule.js, line 314 -
Get the list of meridians. Meridians are lines of equal longitude.
Returns:
The meridians.
-
getParallels(){Array.<ol.geom.LineString>} experimental
src/ol/graticule.js, line 347 -
Get the list of parallels. Pallels are lines of equal latitude.
Returns:
The parallels.
-
setMap(map) experimental
src/ol/graticule.js, line 437 -
Set the map for this graticule. The graticule will be rendered on the provided map.
Name Type Description map
ol.Map Map.