Skip to content

mentaljam/SLDReader

 
 

Repository files navigation

SLDReader

npm version

Build Status

A javascript package that aims to bring styling from a sld document to popular mapping tools.

CONTRIBUTIONS WELCOME!

More information about the standards:

Examples

Live example

See docs/examples folder, to serve them locally

npm start

Api docs

Api docs

Supported SLD Features

Symbolizers

  • Line
  • Polygon
  • Point
  • Text (since version 0.0.4)

Filter comparisons

  • PropertyIsEqualTo
  • PropertyIsNotEqualTo
  • PropertyIsLessThan
  • PropertyIsLessThanOrEqualTo
  • PropertyIsGreaterThan
  • PropertyIsGreaterThanOrEqualTo
  • PropertyIsLike
  • PropertyIsBetween
  • And
  • Or
  • Not
  • FeatureId

Old Browsers

Some older browsers need polyfills to use this library. E.g. es6.array.find

Contributing

Creating an issue

Please include an example sld

Development dependencies

  • node & npm
  • git
  • docker (optional)

Pull requests

  • Address a single issue or add a single item of functionality.
  • Create a test for your functionality
  • Follow eslint rules and apply prettier
  • Update or add an example

Commands

To, install dependencies, test, build and document

npm install
npm test
npm run build
npm run docs
docker-compose up (runs doc website on :4000)

About

SLD styling for online mapping libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%