mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FieldMatchers: Add match by value (reducer) (#64477)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import VectorSource from 'ol/source/Vector';
|
||||
import GeoJSON from 'ol/format/GeoJSON';
|
||||
import { unByKey } from 'ol/Observable';
|
||||
import { checkFeatureMatchesStyleRule } from '../../utils/checkFeatureMatchesStyleRule';
|
||||
import { ComparisonOperation, FeatureRuleConfig, FeatureStyleConfig } from '../../types';
|
||||
import { FeatureRuleConfig, FeatureStyleConfig } from '../../types';
|
||||
import { Fill, Stroke, Style } from 'ol/style';
|
||||
import { FeatureLike } from 'ol/Feature';
|
||||
import { defaultStyleConfig, StyleConfig, StyleConfigState } from '../../style/types';
|
||||
@@ -24,6 +24,7 @@ import { map as rxjsmap, first } from 'rxjs/operators';
|
||||
import { getLayerPropertyInfo } from '../../utils/getFeatures';
|
||||
import { findField } from 'app/features/dimensions';
|
||||
import { getStyleDimension, getPublicGeoJSONFiles } from '../../utils/utils';
|
||||
import { ComparisonOperation } from '@grafana/schema';
|
||||
|
||||
export interface DynamicGeoJSONMapperConfig {
|
||||
// URL for a geojson file
|
||||
|
||||
@@ -11,7 +11,7 @@ import VectorSource from 'ol/source/Vector';
|
||||
import GeoJSON from 'ol/format/GeoJSON';
|
||||
import { unByKey } from 'ol/Observable';
|
||||
import { checkFeatureMatchesStyleRule } from '../../utils/checkFeatureMatchesStyleRule';
|
||||
import { ComparisonOperation, FeatureRuleConfig, FeatureStyleConfig } from '../../types';
|
||||
import { FeatureRuleConfig, FeatureStyleConfig } from '../../types';
|
||||
import { Style } from 'ol/style';
|
||||
import { FeatureLike } from 'ol/Feature';
|
||||
import { GeomapStyleRulesEditor } from '../../editor/GeomapStyleRulesEditor';
|
||||
@@ -23,6 +23,7 @@ import { ReplaySubject } from 'rxjs';
|
||||
import { map as rxjsmap, first } from 'rxjs/operators';
|
||||
import { getLayerPropertyInfo } from '../../utils/getFeatures';
|
||||
import { getPublicGeoJSONFiles } from '../../utils/utils';
|
||||
import { ComparisonOperation } from '@grafana/schema';
|
||||
|
||||
export interface GeoJSONMapperConfig {
|
||||
// URL for a geojson file
|
||||
|
||||
Reference in New Issue
Block a user