-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fixtures and test cases for font-based mark symbolizers
- Loading branch information
Showing
3 changed files
with
71 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,19 @@ | ||
import OlStyle from 'ol/style/Style'; | ||
import OlStyleText from 'ol/style/Text'; | ||
import OlStyleFill from 'ol/style/Fill'; | ||
import OlStyleStroke from 'ol/style/Stroke'; | ||
|
||
const olFontGlyph = new OlStyle({ | ||
text: new OlStyleText({ | ||
text: '|', | ||
font: 'Normal 12px \'My Font Name\', geostyler-mark-symbolizer', | ||
fill: new OlStyleFill({ | ||
color: '#FF0000' | ||
}), | ||
stroke: new OlStyleStroke({ | ||
color: '#112233' | ||
}) | ||
}) | ||
}); | ||
|
||
export default olFontGlyph; |
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,20 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointFontglyph: Style = { | ||
name: 'OL Style', | ||
rules: [ | ||
{ | ||
name: 'OL Style Rule 0', | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'ttf://My Font Name#0x7c', | ||
color: '#FF0000', | ||
radius: 12, | ||
rotate: 0, | ||
strokeColor: '#112233' | ||
}] | ||
} | ||
] | ||
}; | ||
|
||
export default pointFontglyph; |
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