-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(viewer): Read metadata gokoala title items from style + Upgrade …
…Angular
- Loading branch information
1 parent
4c0192f
commit 2c7abd0
Showing
10 changed files
with
3,966 additions
and
3,313 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"version": 8, | ||
"name": "teststyle", | ||
"id": "test style color function", | ||
"metadata": { | ||
"ol:webfonts": "https://test/resources/fonts/{font-family}/{fontweight}{-fontstyle}.css", | ||
"gokoala:title-items": "color,function" | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "Area print border", | ||
"type": "fill", | ||
"paint": { | ||
"fill-color": "rgb(255, 0, 0)", | ||
"fill-opacity": 0.1 | ||
}, | ||
"filter": ["all", ["==", "function", "A"], ["==", "color", "red"]], | ||
"source": "test", | ||
"source-layer": "testArea" | ||
}, | ||
{ | ||
"id": "Area label", | ||
"filter": ["all", ["==", "function", "A"], ["==", "color", "red"]], | ||
"type": "symbol", | ||
"paint": { | ||
"text-opacity": 1, | ||
"text-halo-width": 2, | ||
"text-color": "rgb(255, 0, 0)" | ||
}, | ||
"layout": { | ||
"symbol-placement": "point", | ||
"text-field": "{name}", | ||
"text-size": 12 | ||
}, | ||
"source": "test", | ||
"source-layer": "testArea" | ||
}, | ||
{ | ||
"id": "line", | ||
"filter": ["all", ["==", "function", "A"], ["==", "color", "red"]], | ||
"type": "line", | ||
"paint": { | ||
"line-color": "rgb(255, 0, 0)", | ||
"line-width": 2 | ||
}, | ||
"source": "test", | ||
"source-layer": "testline" | ||
}, | ||
{ | ||
"id": "circle", | ||
"filter": ["all", ["==", "function", "B"], ["==", "color", "green"]], | ||
"type": "circle", | ||
"source": "test", | ||
"source-layer": "testpoint", | ||
"paint": { | ||
"circle-color": "#7FDF0A", | ||
"circle-radius": 4.3, | ||
"circle-stroke-color": "#000000" | ||
} | ||
} | ||
], | ||
"sources": { | ||
"test": { | ||
"type": "vector", | ||
"tiles": ["https://test/{z}/{y}/{x}?f=mvt"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"version": 8, | ||
"name": "teststyle", | ||
"id": "test style id", | ||
"metadata": { | ||
"ol:webfonts": "https://test/resources/fonts/{font-family}/{fontweight}{-fontstyle}.css", | ||
"gokoala:title-items": "id" | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "Area print border", | ||
"type": "fill", | ||
"paint": { | ||
"fill-color": "rgb(100, 100,100)", | ||
"fill-opacity": 0.1 | ||
}, | ||
"source": "test", | ||
"source-layer": "testArea" | ||
}, | ||
{ | ||
"id": "Area label", | ||
"type": "symbol", | ||
"paint": { | ||
"text-opacity": 1, | ||
"text-halo-width": 2, | ||
"text-color": "rgb(100,0,255)" | ||
}, | ||
"layout": { | ||
"symbol-placement": "point", | ||
"text-field": "{name}", | ||
"text-size": 12 | ||
}, | ||
"source": "test", | ||
"source-layer": "testArea" | ||
}, | ||
{ | ||
"id": "line", | ||
"type": "line", | ||
"paint": { | ||
"line-color": "rgb(255, 0, 0)", | ||
"line-width": 2 | ||
}, | ||
"source": "test", | ||
"source-layer": "testline" | ||
}, | ||
{ | ||
"id": "circle", | ||
"type": "circle", | ||
"source": "test", | ||
"source-layer": "testpoint", | ||
"paint": { | ||
"circle-color": "#B5DF0A", | ||
"circle-radius": 4.3, | ||
"circle-stroke-color": "#000000" | ||
} | ||
} | ||
], | ||
"sources": { | ||
"test": { | ||
"type": "vector", | ||
"tiles": ["https://test/{z}/{y}/{x}?f=mvt"] | ||
} | ||
} | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"version": 8, | ||
"name": "teststyle", | ||
"id": "teststyleid", | ||
"id": "test style no metadata", | ||
|
||
"layers": [ | ||
{ | ||
|
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
Oops, something went wrong.