forked from mapbox/carto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests for attachement (cf mapbox#245)
- Loading branch information
1 parent
50a27c2
commit 7a3b659
Showing
10 changed files
with
107 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#layer { | ||
// default attachement comes before | ||
line-color: chartreuse; | ||
line-width: 10; | ||
::inline { | ||
line-color: lime; | ||
line-width: 5; | ||
} | ||
} |
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,10 @@ | ||
<Style name="style-inline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#00ff00" stroke-width="5" /> | ||
</Rule> | ||
</Style> | ||
<Style name="style" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#7fff00" stroke-width="10" /> | ||
</Rule> | ||
</Style> |
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,9 @@ | ||
#layer { | ||
::outline { | ||
line-color: aliceblue; | ||
line-width: 5; | ||
} | ||
// default attachement comes after | ||
line-color: orchid; | ||
line-width: 10; | ||
} |
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,10 @@ | ||
<Style name="style" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#da70d6" stroke-width="10" /> | ||
</Rule> | ||
</Style> | ||
<Style name="style-outline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#f0f8ff" stroke-width="5" /> | ||
</Rule> | ||
</Style> |
12 changes: 12 additions & 0 deletions
12
test/rendering-mss/basic_attachment_internal_before_and_after.mss
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,12 @@ | ||
#layer { | ||
::outline { | ||
line-color: salmon; | ||
line-width: 10; | ||
} | ||
line-color: coral; | ||
line-width: 5; | ||
::inline { | ||
line-color: moccasin; | ||
line-width: 1; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
test/rendering-mss/basic_attachment_internal_before_and_after.xml
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,15 @@ | ||
<Style name="style-inline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#ffe4b5" stroke-width="1" /> | ||
</Rule> | ||
</Style> | ||
<Style name="style" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#ff7f50" stroke-width="5" /> | ||
</Rule> | ||
</Style> | ||
<Style name="style-outline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#fa8072" stroke-width="10" /> | ||
</Rule> | ||
</Style> |
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,10 @@ | ||
#layer { | ||
::outline { | ||
line-color: whitesmoke; | ||
line-width: 10; | ||
} | ||
::inline { | ||
line-color: mintcream; | ||
line-width: 5; | ||
} | ||
} |
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,11 @@ | ||
|
||
<Style name="style-inline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#f5fffa" stroke-width="5" /> | ||
</Rule> | ||
</Style> | ||
<Style name="style-outline" filter-mode="first"> | ||
<Rule> | ||
<LineSymbolizer stroke="#f5f5f5" stroke-width="10" /> | ||
</Rule> | ||
</Style> |
11 changes: 11 additions & 0 deletions
11
test/rendering-mss/basic_attachment_internal_with_label.mss
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,11 @@ | ||
#places { | ||
marker-width: 10; | ||
marker-allow-overlap: true; | ||
marker-fill: peru; | ||
::label { | ||
text-face-name: "DejaVu Sans Book"; | ||
text-name: "'1'"; | ||
text-fill: tomato; | ||
text-allow-overlap: true; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test/rendering-mss/basic_attachment_internal_with_label.xml
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,10 @@ | ||
<Style name="style-label" filter-mode="first"> | ||
<Rule> | ||
<TextSymbolizer face-name="DejaVu Sans Book" fill="#ff6347" allow-overlap="true" ><![CDATA['1']]></TextSymbolizer> | ||
</Rule> | ||
</Style> | ||
<Style name="style" filter-mode="first"> | ||
<Rule> | ||
<MarkersSymbolizer width="10" allow-overlap="true" fill="#cd853f" /> | ||
</Rule> | ||
</Style> |