@asymmetrik/angular2-leaflet-filter
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -1,2 +0,2 @@ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.0 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.1 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('leaflet'), require('@asymmetrik/leaflet-filter'), require('@asymmetrik/angular2-leaflet')) : |
@@ -1,2 +0,2 @@ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.0 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.1 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("leaflet"),require("@asymmetrik/leaflet-filter"),require("@asymmetrik/angular2-leaflet")):"function"==typeof define&&define.amd?define(["exports","@angular/core","leaflet","@asymmetrik/leaflet-filter","@asymmetrik/angular2-leaflet"],t):t(e.angular2LeafletFilter=e.angular2LeafletFilter||{},e.ng.core,e.L,null,e.angular2Leaflet)}(this,function(e,t,r,i,l){"use strict";var n=function(){function e(e){this.filterOptions=null,this.filterStateChange=new t.EventEmitter,this.controlReady=new t.EventEmitter,this.leafletDirective=new l.LeafletDirectiveWrapper(e)}return e.prototype.ngOnInit=function(){var e=this;this.leafletDirective.init(),this.filterOptions=this.initializeFilterOptions(this.filterOptions),this.filterControl=r.control.filter(this.filterOptions),this.featureGroup=this.filterOptions.featureGroup,this.filterControl.addTo(this.leafletDirective.getMap()),this.leafletDirective.getMap().on("filter:filter",function(t){setTimeout(function(){e.filterStateChange.emit(t.geo)})}),this.filterControl.setFilter(this.filterState),this.controlReady.emit(this.filterControl)},e.prototype.ngOnChanges=function(e){e.filterState&&null!=this.filterControl&&this.filterControl.setFilter(e.filterState.currentValue)},e.prototype.initializeFilterOptions=function(e){return null==e&&(e={featureGroup:null}),null==e.featureGroup&&(e.featureGroup=r.featureGroup(),this.leafletDirective.getMap().addLayer(e.featureGroup)),e},e}();n.decorators=[{type:t.Directive,args:[{selector:"[leafletFilter]"}]}],n.ctorParameters=function(){return[{type:l.LeafletDirective}]},n.propDecorators={filterOptions:[{type:t.Input,args:["leafletFilterOptions"]}],filterState:[{type:t.Input,args:["leafletFilterState"]}],filterStateChange:[{type:t.Output,args:["leafletFilterStateChange"]}],controlReady:[{type:t.Output,args:["leafletFilterControlReady"]}]};var a=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();a.decorators=[{type:t.NgModule,args:[{exports:[n],declarations:[n]}]}],a.ctorParameters=function(){return[]},e.LeafletFilterModule=a,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -6,3 +6,3 @@ { | ||
"description": "Angular 2 component for the Leaflet Filter plugin", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
@@ -9,0 +9,0 @@ "author": "Asymmetrik, Ltd.", |
@@ -5,2 +5,4 @@ # @asymmetrik/angular2-leaflet-filter | ||
**IMPORTANT NOTE: This package has been renamed to @asymmetrik/ngx-leaflet-filter** | ||
> Leaflet Filter package for Angular 2 | ||
@@ -7,0 +9,0 @@ > Provides Angular 2 integration with the Filter plugin for Leaflet |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55647
134
1