How to use geostyler-openlayers-parser - 1 common examples

To help you get started, we’ve selected a few geostyler-openlayers-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geosolutions-it / MapStore2 / web / client / components / map / openlayers / VectorStyle.js View on Github external
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

geostyler-openlayers-parser

GeoStyler Style Parser implementation for OpenLayers styles

BSD-2-Clause
Latest version published 5 months ago

Package Health Score

70 / 100
Full package analysis

Popular geostyler-openlayers-parser functions