Debian Codegraph @

opts/geo.go

raw symbols SCIP
1 package opts
2
3 import "github.com/go-echarts/go-echarts/v2/types"
4
5 // GeoComponent is the option set for geo component.
6 // https://echarts.apache.org/en/option.html#geo
7 type GeoComponent struct {
8 // Map charts.
9 Map string `json:"map,omitempty"`
10
11 // Specifies which point on the map should be placed at center of viewport.
12 // When roaming, values in center and zoom will be modified correspondingly.
13 // Center is in longitude and latitude by default. Use the projected coordinates.
14 // Example: [115.97, 29.71].
15 // A percentage string can also be used, like '30%', based on the bounding rect.
16 // You can use '0%' to place the top or left of bounding rect to the center,
17 // or use '50%' to place the entire source map at the the center of the viewport.
18 // Example: [115, '30%'].
19 Center interface{} `json:"center,omitempty"`
20
21 // Zoom rate of current viewport. The value less than 1 indicates zooming out,
22 // while the value greater than 1 indicates zooming in.
23 // When roaming, values in center and zoom will be modified correspondingly.
24 Zoom types.Float `json:"zoom,omitempty"`
25
26 // Whether to enable mouse or touch roam (move and zoom):
27 // * false: roam is disabled.
28 // * true: both zoom and move (translation) are available.
29 // When roaming, values in center and zoom will be modified correspondingly.
30 Roam types.Bool `json:"roam,omitempty"`
31
32 // Graphic style of Map Area Border, emphasis is the style when it is highlighted,
33 // like being hovered by mouse, or highlighted via legend connect.
34 ItemStyle *ItemStyle `json:"itemStyle,omitempty"`
35
36 // Set this to true, to prevent interaction with the axis.
37 Silent types.Bool `json:"silent,omitempty"`
38 }