Class: disclaimerComponent component:gmfDisclaimer

gmf.disclaimerComponent

new disclaimerComponent()

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"
             ngeo-modal-destroy-content-on-hide="true">
  <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 Whether to show the disclaimer messages in popups or not. Defaults to `false`.
gmf-disclaimer-external <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 <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 <nullable>
variable that will contains the disclaimer messages. To uses it, you must set the gmf-disclaimer-external to true.
gmf-disclaimer-map <optional>
The map.