forked from go-spatial/tegola
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layer.go
38 lines (33 loc) · 1.08 KB
/
layer.go
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
package style
const (
LayerTypeFill = "fill"
LayerTypeLine = "line"
LayerTypeSymbol = "symbol"
LayerTypeCircle = "circle"
LayerTypeFillExtrusion = "fill-extrusion"
LayerTypeRaster = "raster"
LayerTypeBackground = "background"
)
type Layer struct {
ID string `json:"id"`
Source string `json:"source,omitempty"`
SourceLayer string `json:"source-layer,omitempty"`
Type string `json:"type,omitempty"`
Layout *LayerLayout `json:"layout"`
Paint *LayerPaint `json:"paint"`
}
type LayerPaint struct {
LineColor string `json:"line-color,omitempty"`
FillColor string `json:"fill-color,omitempty"`
FillOutlineColor string `json:"fill-outline-color,omitempty"`
FillOpacity uint8 `json:"fill-opacity,omitempty"`
CircleRadius uint8 `json:"circle-radius,omitempty"`
CircleColor string `json:"circle-color,omitempty"`
}
const (
LayoutVisible = "visible"
LayoutVisibleNone = "none"
)
type LayerLayout struct {
Visibility string `json:"visibility,omitempty"`
}