-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4155 from geoadmin/fix-hydroweb-json-vectorStyle
Deploy 2023-03-15: Fix korrupt hydroweb json
- Loading branch information
Showing
1 changed file
with
46 additions
and
18 deletions.
There are no files selected for viewing
64 changes: 46 additions & 18 deletions
64
chsdi/static/vectorStyles/ch.bafu.hydroweb-messstationen_grundwasser.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,51 @@ | ||
{ | ||
"type": "unique", | ||
"property": "quant-class", | ||
"property": "grundwasser-class", | ||
"values": [ | ||
|
||
{ "geomType": "point", "value": 0,"minResolution": 100, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/nodata14.png"} }, { "geomType": "point", "value": [-100000,0],"maxResolution": 100, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu/images/nodata16.png" , "label": {"template": "${name}\n - ", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-28, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }}}}, | ||
|
||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 1,"minResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow16_153_102_51.png" } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 1,"minResolution": 100, "maxResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow20_153_102_51.png", "label": {"template": "${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-20, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 1,"maxResolution": 100, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu/images/arrow20_153_102_51.png", "label": {"template": "${name}\n ${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-28, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } } , | ||
|
||
|
||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 2,"minResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow16_238_215_194.png" } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 2,"minResolution": 100, "maxResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow20_238_215_194.png", "label": {"template": "${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-20, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 2,"maxResolution": 100, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/arrow20_238_215_194.png", "label": {"template": "${name}\n ${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-28, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } } , | ||
|
||
|
||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 3,"minResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow16_26_71_139.png" } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 3,"minResolution": 100, "maxResolution": 250, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow20_26_71_139.png", "label": {"template": "${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-20, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } }, | ||
{ "geomType": "point", "rotation": "quant-class-radiant", "value": 3,"maxResolution": 100, "vectorOptions": { "type": "icon", "src": "https://data.geo.admin.ch/ch.bafu.hydroweb-messstationen_grundwasserzustand/images/arrow20_26_71_139.png", "label": {"template": "${name}\n ${quant-value}", "text": { "textAlign": "center", "textBaseline": "middle", "font": "bold 12px FrutigerNeueW02-Regular,Frutiger,sans-serif", "scale": 1, "offsetY":-28, "padding": [2, 2, 2, 2], "stroke": { "color": "rgba(14,80,114,0.9)", "width": 3 }, "backgroundFill": { "color": "rgba(14,80,114,0.9)" }, "fill": { "color": "white" } }} } } , | ||
|
||
{ | ||
"geomType": "point", | ||
"value": 2, | ||
"vectorOptions": { | ||
"type": "circle", | ||
"radius": 8, | ||
"fill": { | ||
"color": "#808080" | ||
}, | ||
"stroke": { | ||
"color": "#FFFFFF", | ||
"width": 1 | ||
} | ||
} | ||
}, { | ||
"geomType": "point", | ||
"value": 1, | ||
"vectorOptions": { | ||
"type": "triangle", | ||
"radius": 12, | ||
"rotation": 1.0471975511965976, | ||
"fill": { | ||
"color": "#808080" | ||
}, | ||
"stroke": { | ||
"color": "#FFFFFF", | ||
"width": 1 | ||
} | ||
} | ||
}, { | ||
"geomType": "point", | ||
"value": 3, | ||
"vectorOptions": { | ||
"type": "square", | ||
"radius": 10, | ||
"rotation": 0.7853981633974483, | ||
"fill": { | ||
"color": "#808080" | ||
}, | ||
"stroke": { | ||
"color": "#FFFFFF", | ||
"width": 1 | ||
} | ||
} | ||
} | ||
] | ||
} |