Class: directive_ directive:ngeoMap

ngeo.map.module:component.directive_

new directive_($window)

Provides a directive used to insert a user-defined OpenLayers map in the DOM. The directive does not create an isolate scope.

Examples:

Simple:

 <div ngeo-map="ctrl.map"></div>

Manage window resizing:

 <div
   ngeo-map="ctrl.map"
   ngeo-map-manage-resize="ctrl.manageResize"
   ngeo-map-resize-transition="ctrl.resizeTransition">
 </div>

See our live examples: ../examples/permalink.html ../examples/simple.html

HTML attributes:
Name Type Description
ngeo-map ol.Map The map.
Returns:
angular.Directive

Directive Definition Object.