Class: createregularpolygonfromclickDirective directive:ngeoCreateregularpolygonfromclick

ngeo.createregularpolygonfromclickDirective

new createregularpolygonfromclickDirective()

A directive used to draw vector features of a single geometry type using either a 'draw' or 'measure' interaction. Once a feature is finished being drawn, it is added to a collection of features.

The geometry types supported are:

  • Point
  • LineString
  • Polygon

Example:

<a
  href
  translate
  ngeo-btn
  ngeo-createregularpolygonfromclick
  ngeo-createregularpolygonfromclick-active="ctrl.active"
  ngeo-createregularpolygonfromclick-angle="::ctrl.angle"
  ngeo-createregularpolygonfromclick-features="ctrl.features"
  ngeo-createregularpolygonfromclick-map="::ctrl.map"
  ngeo-createregularpolygonfromclick-radius="::ctrl.radius"
  ngeo-createregularpolygonfromclick-sides="::ctrl.sides"
  class="btn btn-default ngeo-createregularpolygonfromclick"
  ng-class="{active: ctrl.active}"
  ng-model="ctrl.active">
</a>
HTML attributes:
Name Type Description
ngeo-createregularpolygonfromclick-active boolean Whether the directive is active or not.
ngeo-createregularpolygonfromclick-angle number | undefined Angle in radians. A value of 0 will have one of the shape's point facing up. Default value is 0.
ngeo-createregularpolygonfromclick-features ol.Collection The collection of features where to add those created by this directive.
ngeo-createregularpolygonfromclick-map ol.Map The map.
ngeo-createregularpolygonfromclick-radius number Radius size in map units.
ngeo-createregularpolygonfromclick-sides number | undefined The number of sides for the regular polygon. Default value is 3.
Returns:
angular.Directive

The directive specs.