/geostyler-style

Style declaration files for the GeoStyler project

Primary LanguageTypeScript

geostyler-style

Greenkeeper badge Build Status

TypeScript Declaration File for the the GeoStyler Style.

Why another style format?

The Geostyler Style is not primarily intended to be a new standard for styling geographic data.

The main task of the format is to be an exchange format for all the other standards. It should be capable of storing the styling possibilities of SLD, OpenLayers-Styles, MapBox-Styles, CartoCSS (and others) while being easily read- and writable.

On the other hand it is used by the GeoStyler to build the UI components. This way you should be able to configure any type of style via UI and also translate between all supported formats (in theory 😁).

TypeGuards

In addition to the definition itself, there are some custom TypeGuards that can be used as utility methods to enhance the coding experience with the geostyler-style.

import { isFilter, isSymbolizer } from 'geostyler-style/dist/typeguards';