0.0.3 • Published 5 years ago

generic-maps v0.0.3

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

SyngentaMaps

This library was generated with Angular CLI version 8.2.11.

Code scaffolding

Run ng generate component component-name --project syngentaMaps to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project syngentaMaps.

Note: Don't forget to add --project syngentaMaps or else it will be added to the default project in your angular.json file.

Build

Run ng build syngentaMaps to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build syngentaMaps, go to the dist folder cd dist/syngenta-maps and run npm publish.

Running unit tests

Run ng test syngentaMaps to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Steps to Integrate into another component:

1) Install the package using npm i syngenta-maps 2) Import into app.module as below. import { SyngentaMapsModule} from 'syngenta-maps'

    @NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserModule,
        SyngentaMapsModule
    ],
    providers: [],
    bootstrap: [AppComponent]
    })

3) You can either pass the static data or get data by calling api and pass it to the maps.

<lib-syngentaMaps mapZoom=4 geoJson="data" >

0.0.3

5 years ago

0.0.2

5 years ago