Geoportal Extension for OpenLayers 3 API Reference

Class: MeasureAzimuth

ol.control.MeasureAzimuth

Azimuth measurement Control. Allows users to draw a line on an OL3 map and have its angle in decimal degrees clockwise from the geographical north.

new MeasureAzimuth(options)

Ol3/Controls/Measures/MeasureAzimuth.js, line 45
Name Type Description
options Object

options for function call.

Name Type Default Description
styles Object {} optional

styles used when drawing. Specified with following properties.

Name Type Default Description
pointer Object {} optional

Style for mouse pointer when drawing the line. Specified with an ol.style.Image subclass object.

start Object {} optional

Line Style when drawing. Specified with an ol.style.Style object.

finish Object {} optional

Line Style when finished drawing. Specified with an ol.style.Style object.

Example
var measure = new ol.control.MeasureAzimuth({
});

Extends

  • ol.control.Control

Methods

setMap(map)

Ol3/Controls/Measures/MeasureAzimuth.js, line 114

Overwrite OpenLayers setMap method

Name Type Description
map ol.Map

Map.