0.0.17 • Published 5 years ago

angular-leaflet v0.0.17

Weekly downloads
201
License
-
Repository
-
Last release
5 years ago

angular-leaflet

Collection of angular components to build map views faster and with minimal configuration using the most popular library LeafletJS.

npm version Build Status

Instalation

npm install --save angular-leaflet

Usage

Import NglCoreModule to root or feature module in your angular app.

@NgModule({ 
  imports: [NglCoreModule]
})  
export class AppModule { }

NglCoreModule contains base component <app-leaflet> and classes:

  • BaseLayer - required to create custom layer and use inside core component
  • MapHandler - required to create map handler class
  • LayerHandler - required to create layer handler class
<app-leaflet [options]="options">
  <app-tile-layer></app-tile-layer>
  <app-feature-group>
    <app-polyline [coordinates]="coordinates | async" [options]="pathOptions | async"></app-polyline>
    <app-marker [latLng]="[51.759445, 19.457216]"></app-marker>
    <app-polygon [coordinates]="[[51.7894, 19.4972], [51.750, 19.435], [51.731, 19.471]]"
                 [options]="pathOptions | async"></app-polygon>
    <app-rectangle [bounds]="latLngBounds | async" [options]="pathOptions | async"></app-rectangle>
    <app-circle [center]="center | async" [radius]="1000" [options]="pathOptions | async"></app-circle>
  </app-feature-group>
</app-leaflet>

Table with available submodules

NameDescriptionComponents
NglImageOverlayModuleContains component to display image as a base layer. Also required to set crs in map options to CRS.Simple.<app-image-overlay>
NglTileLayerModuleContains component to display tiles as a base layer. At this moment, OpenStreetMap is a provider of tiles.<app-tile-layer>
NglMarkerModuleContains component to display Marker layer on map.<app-marker
NglVectorsModuleContains layers based on vectors such as Polyline, Polygon, Circle and Rectangle.<app-polyline>, <app-polygon, <app-rectangle>, <app-circle>
NglGroupsModuleContains group-like layers.<app-feature-group>

Examples

example-app - contains a angular5 app with angular-leaflet library example usage.

Issues

Feel free to create issue with your problem.

0.0.17

5 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago