/
point_symbol_style_in_label.ts
53 lines (52 loc) · 1.27 KB
/
point_symbol_style_in_label.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;