angular-ui/ui-leaflet-ng2

Name: ui-leaflet-ng2

Owner: AngularUI

Description: Angular 2 component for Leaflet 1.x (WIP - Help Wanted)

Created: 2016-10-07 22:59:49.0

Updated: 2018-04-27 12:45:05.0

Pushed: 2018-04-25 00:05:21.0

Homepage: https://angular-ui.github.io/ui-leaflet-ng2/docs/

Size: 760

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Angular 2 Leaflet Directive - WORK IN PROGRESS (WIP)

Goal

Angular 2 directive for the Leaflet Javascript Library. This software aims to easily embed maps managed by Leaflet on your project.

Master Branch State

Please note the master branch is currently in a “in-progress state” and is not suitable for production use at this point.

Features
TODO
Installation

To install ui-leaflet-ng2, run:

m install angular-ui/ui-leaflet-ng2#master --save
How to use it

Once you have published your library to npm, you can import ui-leaflet-ng2 in any Angular application by running:

m install angular-ui/ui-leaflet-ng2#master --save

and then from your Angular AppModule:

rt { BrowserModule } from '@angular/platform-browser';
rt { NgModule } from '@angular/core';

rt { AppComponent } from './app.component';

mport your library
rt { UiLeafletModule } from 'ui-leaflet-ng2';

odule({
clarations: [
AppComponent

ports: [
BrowserModule,
UiLeafletModule

oviders: [],
otstrap: [AppComponent]

rt class AppModule { }

Once your library is imported, you can use its components, directives and pipes in your Angular application:

 You can now use your library component in app.component.html -->

title}}
>
leaflet></ui-leaflet>
Documentation:

UI Leaflet for Angular 2

https://angular-ui.github.io/ui-leaflet-ng2/docs/

Development

To generate all *.js, *.js.map and *.d.ts files:

m run tsc

To lint all *.ts files:

m run lint
License

MIT © Michael Salgado


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.