Class: btnDirective directive:ngeoBtn

ngeo.btnDirective

new btnDirective($parse)

The ngeo-btn allows creating toggle buttons working with ng-model. It is typically used with Bootstrap buttons (btn).

Example:

<button ngeo-btn class="btn" ng-model="ctrl.interaction.active"></button>

This example is about creating a Bootstrap button that can pressed/depressed to activate/deactivate an OpenLayers interaction.

HTML attributes:
Name Type Description
ng-model * Any property on the scope. Ideally a boolean.
Returns:
angular.Directive

The directive specs.