Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Icons from '../../../utils/openlayers/Icons';
import {
isMarkerStyle, isTextStyle, isStrokeStyle, isFillStyle, isCircleStyle, isSymbolStyle,
registerGeometryFunctions, geometryFunctions, getStyleParser
} from '../../../utils/VectorStyleUtils';
import CircleStyle from 'ol/style/Circle';
import {Stroke, Fill, Text, Style} from 'ol/style';
import {Point, LineString} from 'ol/geom';
import {Promise} from 'es6-promise';
import axios from '../../../libs/ajax';
import OlStyleParser from 'geostyler-openlayers-parser';
const olStyleParser = new OlStyleParser();
import {
getStyle as getStyleLegacy, getMarkerStyle as getMarkerStyleLegacyFun,
startEndPolylineStyle as startEndPolylineStyleLegacy, defaultStyles as defaultStylesLegacy} from './LegacyVectorStyle';
const selectedStyle = {
white: [255, 255, 255, 1],
blue: [0, 153, 255, 1],
width: 3
};
/**
* converts a style object into an ol.Style
* @param {object} style to convert
* @param {object} ol.Stroke object
* @param {object} ol.Fill object
* @return if a circle style is passed then return it available for ol.style.Image