Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
181 additions
and
1 deletion.
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,69 @@ | ||
LAYER | ||
NAME point_symbol_style_in_label | ||
MAXSCALEDENOM 35000 | ||
TYPE POINT | ||
EXTENT -20026376.39 -20048966.10 20026376.39 20048966.10 | ||
PROJECTION | ||
"init=epsg:3857" | ||
END | ||
CLASS | ||
MAXSCALEDENOM 35000 | ||
LABEL | ||
SIZE 6.644432194046306 | ||
COLOR "#ffffff" | ||
TEXT '[ref]' | ||
PARTIALS false | ||
FONT "ptsansbold" | ||
TYPE truetype | ||
STYLE | ||
SYMBOL "simple_point_1_symbol_svg" | ||
END | ||
STYLE | ||
SYMBOL "simple_point_2_symbol_svg" | ||
END | ||
END | ||
END | ||
CLASS | ||
MAXSCALEDENOM 25000 | ||
LABEL | ||
SIZE 5.644432194046306 | ||
COLOR "#ffffff" | ||
TEXT '[ref]' | ||
PARTIALS false | ||
FONT "ptsansbold" | ||
TYPE truetype | ||
STYLE | ||
SYMBOL "simple_point_2_symbol_svg" | ||
END | ||
END | ||
END | ||
CLASS | ||
MAXSCALEDENOM 20000 | ||
LABEL | ||
SIZE 4.644432194046306 | ||
COLOR "#ffffff" | ||
TEXT '[ref]' | ||
PARTIALS false | ||
FONT "ptsansbold" | ||
TYPE truetype | ||
STYLE | ||
SYMBOL "simple_point_3_symbol_svg" | ||
END | ||
END | ||
END | ||
END | ||
SYMBOL | ||
NAME simple_point_1_symbol_svg | ||
IMAGE "simple_point_1_symbol.svg" | ||
TYPE svg | ||
END | ||
SYMBOL | ||
NAME simple_point_2_symbol_svg | ||
IMAGE "simple_point_2_symbol.svg" | ||
TYPE svg | ||
END | ||
SYMBOL | ||
NAME simple_point_3_symbol_svg | ||
IMAGE "simple_point_3_symbol.svg" | ||
TYPE svg | ||
END |
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,53 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointSymbolStyle: Style = [ | ||
{ | ||
name: 'point_symbol_style_in_label', | ||
rules: [ | ||
{ | ||
name: '', | ||
scaleDenominator: { max: 35000 }, | ||
symbolizers: [ | ||
{ kind: 'Icon', image: 'simple_point_1_symbol.svg' }, | ||
{ kind: 'Icon', image: 'simple_point_2_symbol.svg' }, | ||
{ | ||
kind: 'Text', | ||
label: '{{ref}}', | ||
font: ['ptsansbold'], | ||
size: 6.644432194046306, | ||
color: '#ffffff' | ||
} | ||
] | ||
}, | ||
{ | ||
name: '', | ||
scaleDenominator: { max: 25000 }, | ||
symbolizers: [ | ||
{ kind: 'Icon', image: 'simple_point_2_symbol.svg' }, | ||
{ | ||
kind: 'Text', | ||
label: '{{ref}}', | ||
font: ['ptsansbold'], | ||
size: 5.644432194046306, | ||
color: '#ffffff' | ||
} | ||
] | ||
}, | ||
{ | ||
name: '', | ||
scaleDenominator: { max: 20000 }, | ||
symbolizers: [ | ||
{ kind: 'Icon', image: 'simple_point_3_symbol.svg' }, | ||
{ | ||
kind: 'Text', | ||
label: '{{ref}}', | ||
font: ['ptsansbold'], | ||
size: 4.644432194046306, | ||
color: '#ffffff' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
]; | ||
export default pointSymbolStyle; |
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
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