A TypeScript declaration file and utility library defining the geostyler-style format, an exchange format for representing geographic styles that can be translated between SLD, OpenLayers, Mapbox, CartoCSS and other standards. Current stable version is 12.0.0, released April 2026. The package ships TypeScript types and includes type guards for runtime type checking. It is developed as part of GeoStyler project, which provides UI components for building styles. Key differentiator: designed as an interchange format rather than a new styling standard, capable of capturing capabilities of multiple style formats while remaining human-readable.
npm install geostyler-styleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a minimal GeoStyler style with a point mark symbolizer and uses the isSymbolizer type guard.
If you define custom functions, ensure they conform to the updated GeoStylerUnknownFunction type. For expressions using 'geometry', update type annotations accordingly.
Use direct imports like 'geostyler-style' instead of 'geostyler-style/dist/...'. If you had imports referencing dist/ for v10.2.0–10.5.0, remove the dist/ path segment.
Switch from require() to import statements. If you must use CJS, use dynamic import(): const { Styler } = await import('geostyler-style')Change import to 'geostyler-style' directly. For example: import { isFilter } from 'geostyler-style'Run npm install geostyler-style@12.0.0. Ensure tsconfig.json includes "node" in compilerOptions.types or "esModuleInterop": true.
Change import to 'geostyler-style' (typeguards are re-exported in v12+).
No dependency data recorded yet.