3.0.0 • Published 5 months ago

ngx-leaflet-neshan-map v3.0.0

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago
  1. Install the package in your angular 17
npm install ngx-leaflet-neshan-map
  1. Add css and js file to assets in angular.json (leaflet.js version 1.9.4)
node_modules/ngx-leaflet-neshan-map/assets/leaflet/leaflet.css,
node_modules/ngx-leaflet-neshan-map/assets/leaflet/leaflet.js
  1. Import the NgxLeafletNeshanMapModule to your AppModule file and register it in the imports:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgxLeafletNeshanMapModule } from 'ngx-leaflet-neshan-map';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    NgxLeafletNeshanMapModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
  1. Implement config model of library in your AppComponent
import { NeshanMapConfigModel } from 'ngx-leaflet-neshan-map/models/neshan-map-config.model';
config : NeshanMapConfigModel   = {};
  1. Add ngx-leaflet-neshan-map element to your template and bind your model to input name 'neshanMapConfig'
<ngx-leaflet-neshan-map  [neshanMapConfig]="config"></ngx-leaflet-neshan-map>
  1. You can get map Object after create by emitter event:
<ngx-leaflet-neshan-map (mapObjectEmitter)="" [neshanMapConfig]="config"></ngx-leaflet-neshan-map>

For supporting development! Install npm i

3.0.0

5 months ago

2.3.0

5 months ago

2.2.0

6 months ago

2.1.1

6 months ago

2.3.2

5 months ago

2.3.1

5 months ago

2.3.3

5 months ago

2.1.0

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.1

12 months ago