0.0.4 • Published 4 years ago

@canvasoft/ng-leaflet v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

  • Map Options
  • Layers
  • Dynamic Center
  • Markercluster

TODO

  • Markers
  • GeoJSON
  • Bounds
  • Max Bounds
  • Manage Map Events
  • Legend
  • Paths
  • Controls

Installation

To install ng-leaflet, run:

$ npm install angular-ui/ng-leaflet#master --save

How to use it

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

$ npm install angular-ui/ng-leaflet#master --save

and then from your Angular AppModule:

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

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

// Import your library
import { UiLeafletModule } from 'ng-leaflet';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    UiLeafletModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export 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 -->
<h1>
  {{title}}
</h1>
<ui-leaflet></ui-leaflet>

Documentation:

UI Leaflet for Angular 2

Demo

License

MIT © Michael Salgado

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago