oscar.Control.Measure

Inherits from:oscar.Control.Multi

Description: This control is used for measuring distance or area.

Summary
oscar.Control.Measure
Properties
sketchSymbolizers{Object{Object}} Contains the display of the look of the measurement tools.
defaultUnit{String} The default display unit of the measurement.
Functions
initialize

Properties

sketchSymbolizers

{Object{Object}} Contains the display of the look of the measurement tools.

"Point": {
      pointRadius: 4,
      graphicName: "square",
      fillColor: "white",
      fillOpacity: 1,
      strokeWidth: 1,
      strokeOpacity: 1,
      strokeColor: "#333333"
  },
  "Line": {
      strokeWidth: 3,
      strokeOpacity: 1,
      strokeColor: "#666666",
      strokeDashstyle: "dash"
  },
  "Polygon": {
      strokeWidth: 2,
      strokeOpacity: 1,
      strokeColor: "#666666",
      fillColor: "white",
      fillOpacity: 0.3
  }

defaultUnit

{String} The default display unit of the measurement.  Set to metric.

Functions

initialize

initialize:function(options)
initialize:function(options)