ngx-leaflet-neshan-map
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published
  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

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-leaflet-neshan-map

Weekly Downloads

1

Version

3.0.0

License

none

Unpacked Size

222 kB

Total Files

19

Last publish

Collaborators

  • shokrian