Socket
Book a DemoInstallSign in
Socket

geovisto-filters

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geovisto-filters

Geovisto tool which provides support for data filtering

2.1.0
latest
Source
npmnpm
Version published
Weekly downloads
96
-22.58%
Maintainers
1
Weekly downloads
 
Created
Source

Geovisto Filters Tool

Extension of the Geovisto core library which provides support for data filtering.

This repository is a snapshot of Geovisto tools/filters derived from the development repository: geovisto/geovisto-map.

Usage

import {
    GeovistoFiltersTool
} from 'geovisto-filters';
import 'geovisto-filters/dist/index.css';

// ,,,

// create instance of map with given props
const map = Geovisto.createMap({
  // ...
  tools?: Geovisto.createMapToolsManager([
    // instances of Geovisto tools (extensions) which will be directly used in the map
    // ...
    GeovistoFiltersTool.createTool({
      id: "geovisto-tool-filters",
      manager: GeovistoFiltersTool.createFiltersManager([
        // filter operations
        GeovistoFiltersTool.createFilterOperationEq(),
        GeovistoFiltersTool.createFilterOperationNeq(),
        GeovistoFiltersTool.createFilterOperationReg()
      ])
    }),
  ])
});

// rendering of the map
map.draw(Geovisto.getMapConfigManagerFactory().default({
  // initial settings of the map can be overriden by the map config - JSON structure providing user settings 
  // ...
  tools?: [
    // config of Geovisto tools (extensions) used in the map
    {
      "type": "geovisto-tool-filters",
      "id": "geovisto-tool-filters",
      "enabled": true,
      "filterRules": [
        {
          "domain": "domain",
          "operation": "!=",
          "pattern": "value"
        },
        // ...
      ]
    },
  ]
}));

Installation

npm install --save geovisto-filters

Peer dependencies:

npm install --save geovisto leaflet

This package serves as an extension of Geovisto core using the API for Geovisto tools (extensions). Follow Geovisto core on Github.

Extensions

New custom filter operations can be implemented by implementing the IMapFilterOperation interface.

License

MIT

Keywords

gis

FAQs

Package last updated on 30 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.