diff --git a/src/layman/map/schema.draft-07.json b/src/layman/map/schema.draft-07.json index b72567f43..969ffb5d3 100644 --- a/src/layman/map/schema.draft-07.json +++ b/src/layman/map/schema.draft-07.json @@ -478,10 +478,15 @@ }, "style": { "$id": "#/properties/layers/items/properties/style", - "type": "object", + "type": [ + "string", + "object" + ], "title": "Style of vector layer features", - "description": "", + "description": "The style can be specified using a string in SLD format, URL to SLD file or JSON object (old way for hslayers-ng@<5.0.0) which specifies fill/stroke/image attributes of the style", "examples": [ + " GeoServer SLD Cook Book: Simple point with stroke GeoServer SLD Cook Book: Simple point with stroke GeoServer SLD Cook Book: Simple point with stroke circle #FF0000 #000000 2 18 ", + "https://docs.geoserver.org/latest/en/user/_downloads/734cc880c145b4d96a3d17fc6eb9b0c8/point_simplepoint.sld", { "stroke": { "color": "rgba(238, 156, 150, 1)",