Skip to content

Commit

Permalink
fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Jan 8, 2020
1 parent 0e83c0e commit 8804b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/legacy/core_plugins/tile_map/public/css_filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import _ from 'lodash';
/**
* just a place to put feature detection checks
*/
export const cssFilters = (function() {
export const supportsCssFilters = (function() {
const e = document.createElement('img');
const rules = ['webkitFilter', 'mozFilter', 'msFilter', 'filter'];
const test = 'grayscale(1)';
Expand Down
4 changes: 2 additions & 2 deletions src/legacy/core_plugins/tile_map/public/tile_map_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { createTileMapVisualization } from './tile_map_visualization';
import { Status } from '../../visualizations/public';
import { TileMapOptions } from './components/tile_map_options';
import { MapTypes } from './map_types';
import { cssFilters } from './css_filters';
import { supportsCssFilters } from './css_filters';

export function createTileMapTypeDefinition(dependencies) {
const CoordinateMapsVisualization = createTileMapVisualization(dependencies);
Expand All @@ -44,7 +44,7 @@ export function createTileMapTypeDefinition(dependencies) {
defaultMessage: 'Plot latitude and longitude coordinates on a map',
}),
visConfig: {
canDesaturate: Boolean(cssFilters),
canDesaturate: Boolean(supportsCssFilters),
defaults: {
colorSchema: 'Yellow to Red',
mapType: 'Scaled Circle Markers',
Expand Down

0 comments on commit 8804b1c

Please sign in to comment.