angular-inpost-geowidget
v12.0.1
Published
Angular library to easy handle inpost geowidget to enable to select a parcel (paczkomat) in your angular project.
Downloads
38
Maintainers
Readme
AngularInpostGeowidget
This library was generated with Angular CLI version 12.0.0.
Using a widget
- Add inpost widget styles
<link rel="stylesheet" href="https://geowidget.easypack24.net/css/easypack.css" />
to yoursrc/index.html
file. - Run
npm install angular-inpost-geowidget
to add a npm library to your project. - Use widget component in template
<lib-angular-inpost-geowidget></lib-angular-inpost-geowidget>
Examples of usage
Basic usage as map widget:
<lib-angular-inpost-geowidget
[widgetType]="GeowidgetTypeEnum.WIDGET"
(onPointSelect)="selectPoint($event)"
></lib-angular-inpost-geowidget>
Show widget as dropdown selector:
<lib-angular-inpost-geowidget
[widgetType]="GeowidgetTypeEnum.DROPDOWN"
(onPointSelect)="selectPoint($event)"
></lib-angular-inpost-geowidget>
Show widget as modal window:
<lib-angular-inpost-geowidget
[widgetType]="GeowidgetTypeEnum.MODAL"
(onPointSelect)="selectPoint($event)"
></lib-angular-inpost-geowidget>
// open modal by service
<button (click)="angularInpostGeowidgetService.openModalWidget.next()">Open modal</button>