{"_id":"@asymmetrik/ngx-leaflet-filter","_rev":"25-196550a81d1b07ef55cd7a2c7c0a63f0","name":"@asymmetrik/ngx-leaflet-filter","dist-tags":{"latest":"2.4.0"},"versions":{"2.3.0":{"name":"@asymmetrik/ngx-leaflet-filter","version":"2.3.0","author":{"name":"Asymmetrik, Ltd."},"license":"MIT","_id":"@asymmetrik/ngx-leaflet-filter@2.3.0","maintainers":[{"name":"rblace","email":"ryan@asymmetrik.com"}],"homepage":"https://github.com/Asymmetrik/ngx-leaflet-filter#readme","bugs":{"url":"https://github.com/Asymmetrik/ngx-leaflet-filter/issues"},"dist":{"shasum":"d42c19da1d2c57426bfc854ec1e400a68af4c291","tarball":"https://registry.npmjs.org/@asymmetrik/ngx-leaflet-filter/-/ngx-leaflet-filter-2.3.0.tgz","integrity":"sha512-VkYLIiOSWJeKEULN/iSf6e4D8eY9JzKKbSd5mzVs5II3gzxsxblPfA1pLZcqxUy+p3R2Jc4dXvYWEIRw8WRDjw==","signatures":[{"sig":"MEYCIQDOlyCg8DvPOgv1VlKtyQF1K6XFLKwLM+HciQ+QUGD8IwIhALC5PVdSV7Xa5vJvGbW7BHuC7L6OWp8xWYVtdQh+T1JY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundles/ngx-leaflet-filter.js","_from":".","module":"dist/index.js","_shasum":"d42c19da1d2c57426bfc854ec1e400a68af4c291","gitHead":"fc4812d8b3e5fbf54c64b26354457b1430c1ec2d","scripts":{},"typings":"dist/index.d.ts","_npmUser":{"name":"rblace","email":"ryan@asymmetrik.com"},"copyright":"Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved.","moduleName":"ngxLeafletFilter","repository":{"url":"git+https://github.com/Asymmetrik/ngx-leaflet-filter.git","type":"git"},"_npmVersion":"3.10.10","description":"Angular 2 component for the Leaflet Filter plugin","directories":{},"_nodeVersion":"6.9.5","artifactName":"ngx-leaflet-filter","devDependencies":{"gulp":"3.9","rxjs":"5.2","merge2":"1.0","rollup":"0.41","tslint":"4.5","core-js":"2.4","leaflet":"1.0","webpack":"2.3","zone.js":"0.8","through2":"2.0","bootstrap":"3","gulp-util":"3.0","node-sass":"4.5","css-loader":"0.27","typescript":"2.2","url-loader":"0.5","@types/node":"6","file-loader":"0.10","gulp-filter":"5.0","gulp-insert":"0.5","gulp-rename":"1.2","gulp-tslint":"7.1","gulp-uglify":"2.1","html-loader":"0.4","sass-loader":"6.0","font-awesome":"4","leaflet-draw":"0.4","run-sequence":"1.2","style-loader":"0.16","@angular/core":"4","@angular/forms":"4","@types/leaflet":"1.0","tslint-stylish":"2.1","@angular/common":"4","gulp-sourcemaps":"2.4","gulp-typescript":"3.1","@angular/compiler":"4","gulp-load-plugins":"1.5","resolve-url-loader":"2.0","webpack-dev-server":"2.4","@types/leaflet-draw":"0.4","@angular/compiler-cli":"4","@asymmetrik/ngx-leaflet":"2.3","angular2-template-loader":"0.6","@angular/platform-browser":"4","awesome-typescript-loader":"3.1","@asymmetrik/leaflet-filter":"1.0","@angular/platform-browser-dynamic":"4"},"peerDependencies":{"leaflet":"1","font-awesome":"4","leaflet-draw":"0.4","@angular/core":">=2","@angular/common":">=2","@asymmetrik/ngx-leaflet":"2","@asymmetrik/leaflet-filter":"1"},"_npmOperationalInternal":{"tmp":"tmp/ngx-leaflet-filter-2.3.0.tgz_1503940293224_0.541824501240626","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@asymmetrik/ngx-leaflet-filter","version":"2.4.0","author":{"name":"Asymmetrik, Ltd."},"license":"MIT","_id":"@asymmetrik/ngx-leaflet-filter@2.4.0","maintainers":[{"name":"robert-w","email":"RWinter85@gmail.com"},{"name":"sieabah","email":"sieabah@gmail.com"},{"name":"reblace","email":"rblace@asymmetrik.com"},{"name":"rblace","email":"ryan@asymmetrik.com"}],"homepage":"https://github.com/Asymmetrik/ngx-leaflet-filter#readme","bugs":{"url":"https://github.com/Asymmetrik/ngx-leaflet-filter/issues"},"dist":{"shasum":"d0e6b4d019b0f5e6f82ad229295a80d8bd0f8721","tarball":"https://registry.npmjs.org/@asymmetrik/ngx-leaflet-filter/-/ngx-leaflet-filter-2.4.0.tgz","integrity":"sha512-1BqomYop0W1zihfRZ7OBmJMKj6Q8M3M1eZ7Ve3Mw0yKtlxWUpUing3wG0fBaPAXbCl4adA1qUuPOUgsOUW5dzw==","signatures":[{"sig":"MEUCIDtqm8N0k+a/1jWsFcRZt7zqbmnOPoZnn/baE+/TO3sGAiEAwe7Vujt+IuGfSHZRJsZ0b4ewiJGHVBHtCJwIA5OTB+w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/bundles/ngx-leaflet-filter.js","_from":".","module":"dist/index.js","_shasum":"d0e6b4d019b0f5e6f82ad229295a80d8bd0f8721","gitHead":"2c55a5422d7741cabb58e5f0b1d4d698cd6a8fcd","scripts":{},"typings":"dist/index.d.ts","_npmUser":{"name":"rblace","email":"ryan@asymmetrik.com"},"copyright":"Copyright Asymmetrik, Ltd. 2007-2017 - All Rights Reserved.","moduleName":"ngxLeafletFilter","repository":{"url":"git+https://github.com/Asymmetrik/ngx-leaflet-filter.git","type":"git"},"_npmVersion":"3.10.10","description":"Angular 2 component for the Leaflet Filter plugin","directories":{},"_nodeVersion":"6.9.5","artifactName":"ngx-leaflet-filter","devDependencies":{"gulp":"3.9","rxjs":"5.4","merge2":"1.1","rollup":"0.49","tslint":"5.7","core-js":"2.5","leaflet":"1.2","webpack":"3.5","zone.js":"0.8","through2":"2.0","bootstrap":"3","gulp-util":"3.0","node-sass":"4.5","css-loader":"0.28","typescript":"2.5","url-loader":"0.5","@types/node":"6","file-loader":"0.11","gulp-filter":"5.0","gulp-insert":"0.5","gulp-rename":"1.2","gulp-tslint":"8.1","gulp-uglify":"3.0","html-loader":"0.5","sass-loader":"6.0","font-awesome":"4","leaflet-draw":"0.4","run-sequence":"2.1","style-loader":"0.18","@angular/core":"4","@angular/forms":"4","@types/leaflet":"1.2","tslint-stylish":"2.1","@angular/common":"4","gulp-sourcemaps":"2.6","gulp-typescript":"3.2","@angular/compiler":"4","gulp-load-plugins":"1.5","source-map-loader":"0.2","resolve-url-loader":"2.1","webpack-dev-server":"2.7","@types/leaflet-draw":"0.4","@angular/compiler-cli":"4","@asymmetrik/ngx-leaflet":"2.3","angular2-template-loader":"0.6","@angular/platform-browser":"4","awesome-typescript-loader":"3.2","@asymmetrik/leaflet-filter":"1.1","@angular/platform-browser-dynamic":"4"},"peerDependencies":{"leaflet":"1","font-awesome":"4","leaflet-draw":"0.4","@angular/core":">=2","@angular/common":">=2","@asymmetrik/ngx-leaflet":"2","@asymmetrik/leaflet-filter":"1"},"_npmOperationalInternal":{"tmp":"tmp/ngx-leaflet-filter-2.4.0.tgz_1504543836256_0.7530879541300237","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-08-28T17:11:34.210Z","modified":"2026-03-13T16:28:44.310Z","2.3.0":"2017-08-28T17:11:34.210Z","2.4.0":"2017-09-04T16:50:37.296Z"},"bugs":{"url":"https://github.com/Asymmetrik/ngx-leaflet-filter/issues"},"author":{"name":"Asymmetrik, Ltd."},"license":"MIT","homepage":"https://github.com/Asymmetrik/ngx-leaflet-filter#readme","repository":{"url":"git+https://github.com/Asymmetrik/ngx-leaflet-filter.git","type":"git"},"description":"Angular 2 component for the Leaflet Filter plugin","maintainers":[{"email":"ryan.blace@bluehalo.com","name":"rblace"},{"email":"reblace@gmail.com","name":"reblace"},{"email":"ekoon@asymmetrik.com","name":"ekoon121"},{"email":"amarcus@asymmetrik.com","name":"amarcus"},{"email":"soneill@asymmetrik.com","name":"soneill"}],"readme":"# @asymmetrik/ngx-leaflet-filter\n\n[![Build Status][travis-image]][travis-url]\n\n[travis-url]: https://travis-ci.org/Asymmetrik/ngx-leaflet-filter/\n[travis-image]: https://travis-ci.org/Asymmetrik/ngx-leaflet-filter.svg\n\n\n> Leaflet Filter package for Angular 2+\n> Provides Angular 2+ integration with the Filter plugin for Leaflet\n\n\n## Table of Contents\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Contribute](#contribute)\n- [License](#license)\n- [Credits](#credits)\n\n\n## Install \nInstall the package and its peer dependencies via npm:\n```\nnpm install font-awesome\nnpm install leaflet\nnpm install leaflet-draw\nnpm install @asymmetrik/ngx-leaflet\nnpm install @asymmetrik/ngx-leaflet-filter\n```\n\nIf you want to run the demo, clone the repository, perform an ```npm install```, ```gulp dev``` and then go to http://localhost:9000/src/demo/index.html\n\n\n## Usage\nThis component extends the [Angular 2 Leaflet component](https://github.com/Asymmetrik/ngx-leaflet) by adding directives for activating and configuring the [Filter plugin for Leaflet](https://github.com/Asymmetrik/leaflet-filter).\n\nUse the ```leaflet-filter``` attribute directive in conjunction with the ```leaflet``` attribute directive to activate a map and enable the filter control.\n\n```html\n<div leaflet style=\"height: 400px;\"\n     leafletFilter\n     [leafletOptions]=\"options\"\n     [leafletFilterOptions]=\"filterOptions\"\n     [(leafletFilterState)]=\"filterState\"\n     (leafletFilterStateChange)=\"eventHandler('filterChanged', $event)\">\n```\n\n## API\n\n### leafletFilter\nAttribute directive that activates the Leaflet filter plugin.\n\n### leafletFilterOptions\nInput binding for Filter control options.\n\nThe Filter Control options extend the standard control options.\n\nExample:\n```js\nvar filterOptions = {\n\tposition: 'topright',\n\tfilter: {\n\t\trectangle: {},\n\t\tpolygon: {},\n\t\tcircle: {},\n\t},\n\tfeatureGroup: featureGroup\n};\n```\n\n#### featureGroup\nYou may choose to provide your own featureGroup layer to the plugin. This is the layer in which the plugin will place all drawn filter shapes. If you specify the featureGroup, it's your job to make sure it's added to the map.\nIf you don't specify a featureGroup, the component will create one for you.\n\n```js\nvar featureGroup = L.featureGroup();\nfeatureGroup.addTo(map);\n\nvar options = {\n\tfeatureGroup: featureGroup\n};\n```\n\n#### position\nDetermines the position on the map where the control will be placed.\n\nPossible values: 'topright' | **'topleft'** | 'bottomleft' | 'bottomright'\n\n\n#### filter\nUsed to configure the various filter types.\n\nPossible properties: **circle** | **rectangle** | **polygon**\n\nIf you omit the filter object entirely, all filter types will be enabled by default.\n\n```js\n// All filter types enabled\nvar filterOptions = {\n\tposition: 'topright'\n};\n```\n\nAlternatively, if you only specify a subset of the filter types, only those specified will be enabled.\n\n```js\n// Only circle and rectangle are enabled\nvar filterOptions = {\n\tposition: 'topright',\n\tfilter: {\n\t\tcircle: {},\n\t\trectangle: {}\n\t}\n};\n``` \n\n### leafletFilterState\nBinds the current filter state. Can be one of a circle, rectangle, polygon, or null if there is no active filter.\n\n\n## Contribute\nPRs accepted. If you are part of Asymmetrik, please make contributions on feature branches off of the ```develop``` branch. If you are outside of Asymmetrik, please fork our repo to make contributions.\n\n\n## License\nSee LICENSE in repository for details.\n\n## Credits\n**[Leaflet](http://leafletjs.com/)** Is an awesome mapping package.\n**[Leaflet Draw](https://github.com/Leaflet/Leaflet.draw)** Is an awesome extension to Leaflet that lets you draw shapes all over your maps.\n","readmeFilename":"README.md"}