Class: component_ component:gmfDisclaimer

gmf.disclaimer.module:component.component_

new component_()

Provide a "disclaimer" component for GeoMapFish that is bound to the layers added and removed from a map.

Example:

 <gmf-disclaimer
   gmf-disclaimer-map="::ctrl.map">
 </gmf-disclaimer>

You can also display the disclaimer messages in popups or use them in another context. The example below show you how to display the disclaimer messages in a ngeo-modal window (external case).

Example:

 <gmf-disclaimer
   gmf-disclaimer-map="::ctrl.map"
   gmf-disclaimer-external="::true"
   gmf-disclaimer-external-msg="disclaimerMsg"
   gmf-disclaimer-external-visibility="disclaimerVisibility">
 </gmf-disclaimer>
 <ngeo-modal ng-model="disclaimerVisibility">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal"
            aria-hidden="true">×</button>
  </div>
  <div class="modal-body">
    <div ng-bind-html="disclaimerMsg"></div>
  </div>
</ngeo-modal>
HTML attributes:
Name Type Attributes Description
gmf-disclaimer-popup boolean Whether to show the disclaimer messages in popups or not. Defaults to `false`.
gmf-disclaimer-external boolean <nullable>
Whether to use disclaimer messages elsewhere or not. Default to `false`. If true, you should use the gmf-disclaimer-external-msg and the gmf-disclaimer-external-visibility too.
gmf-disclaimer-external-visibility boolean <nullable>
variable that will be set to true if the disclaimers contain a new message. To uses it, you must set the gmf-disclaimer-external to true.
gmf-disclaimer-external-msg string <nullable>
variable that will contains the disclaimer messages. To uses it, you must set the gmf-disclaimer-external to true.
gmf-disclaimer-map ol.Map <optional>
The map.