jdddog / ui-leaflet-draw

angular directive for ui-leaflet to utilize Leaflet.Draw

Home Page:http://angular-ui.github.io/ui-leaflet-draw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ui-leaflet-draw

Dependencies  Dependencies  Build Status

Purpose:

To extend ui-leaflet directives to add Leaflet.Draw.

Basic use:

In general the main goal of this direcitve to bind an attribute lf-draw within the leaflet directive to a field which represent Leaflet.Draw options.

Follows the same event driven architecture of leafletDirectiveDraw[someEvent] being fired from root scope. The events are here.

API

For basic use it is described in a enough extent in Basic use.

Unique Options

  • options.control - (note: this will probably go away infavor of leafletData)

    • promised(promise):
      • promise: type: Promise which resolves:
        • type object
          • control: drawControl leaflet object
          • map:: leaflet map instance

Full Example

About

angular directive for ui-leaflet to utilize Leaflet.Draw

http://angular-ui.github.io/ui-leaflet-draw/


Languages

Language:CoffeeScript 63.4%Language:JavaScript 21.3%Language:HTML 14.3%Language:Shell 1.0%