@asymmetrik/angular2-leaflet-filter
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -116,4 +116,3 @@ 'use strict'; | ||
// Declare global libraries here (eg. D3, JQuery, etc) | ||
// d3: 'd3' | ||
leaflet: 'leaflet' | ||
L: 'leaflet' | ||
}), | ||
@@ -120,0 +119,0 @@ new webpack.optimize.CommonsChunkPlugin({ |
@@ -1,2 +0,2 @@ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.1.1 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.0 - 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.1.1 - Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved. + */ | ||
/*! @asymmetrik/angular2-leaflet-filter - 2.2.0 - 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})}); |
@@ -110,3 +110,3 @@ 'use strict'; | ||
format: 'umd', | ||
moduleName: 'angular2LeafletFilter', | ||
moduleName: pkg.moduleName, | ||
sourceMap: true, | ||
@@ -113,0 +113,0 @@ banner: bannerString, |
{ | ||
"name": "@asymmetrik/angular2-leaflet-filter", | ||
"artifactName": "angular2-leaflet-filter", | ||
"moduleName": "angular2LeafletFilter", | ||
"description": "Angular 2 component for the Leaflet Filter plugin", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
@@ -7,0 +8,0 @@ "author": "Asymmetrik, Ltd.", |
55562
843