diff --git a/index.d.ts b/index.d.ts index e2c79441b..90190b896 100644 --- a/index.d.ts +++ b/index.d.ts @@ -150,11 +150,20 @@ export interface BasePointSymbolizer extends BaseSymbolizer { /** * Supported WellKnownNames + * Note that due to TypeScript limitations any string will be valid for this type; this will not change + * until regexp or equivalent is supported, see: + * https://github.com/microsoft/TypeScript/issues/6579 + * + * Important: Geostyler Style Parsers are only expected to support the values listed below, + * as well as font-based symbols following Geotools/Geoserver syntax: + * ttf://# */ export type WellKnownName = 'Circle' | 'Square' | 'Triangle' | 'Star' | 'Cross' | 'X' | 'shape://vertline' | 'shape://horline' | 'shape://slash' | 'shape://backslash' | 'shape://dot' | 'shape://plus' -| 'shape://times' | 'shape://oarrow' | 'shape://carrow' ; +| 'shape://times' | 'shape://oarrow' | 'shape://carrow' +| 'ttf://Webdings#0x0064' +| string; /** * MarkSymbolizer describes the style representation of POINT data, if styled as diff --git a/sample.ts b/sample.ts index 9e5590da1..416f38116 100644 --- a/sample.ts +++ b/sample.ts @@ -71,6 +71,13 @@ const sampleStyle: Style = { wellKnownName: 'Circle', visibility: false, radius: 5 + }, { + kind: 'Mark', + wellKnownName: 'ttf://Webdings#0x68', + radius: 12, + color: '#8a000e', + strokeOpacity: 0.7, + strokeColor: '#ffffff' }] }, {