wangzhibo
2021-09-06 2efb5d2a02ce47a9fd6f1cec138496aba72f0815
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
  "where": {
    "text": [
      { "field": "like", "name": "模糊匹配" },
      { "field": "=", "name": "等于" }
    ],
    "number": [
      { "field": "=", "name": "=" },
      { "field": "<>", "name": "<>" },
      { "field": ">", "name": ">" },
      { "field": ">=", "name": ">=" },
      { "field": "<", "name": "<" },
      { "field": "<=", "name": "<=" }
    ]
  },
  "layers": [
    { "name": "POI信息点", "id": 1 },
    {
      "name": "政府机关",
      "pid": 1,
      "url": "//server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/18",
      "symbol": {
        "styleOptions": {
          "image": "img/marker/mark3.png",
          "scale": 1,
          "scaleByDistance": true,
          "scaleByDistance_far": 20000,
          "scaleByDistance_farValue": 0.5,
          "scaleByDistance_near": 1000,
          "scaleByDistance_nearValue": 1,
          "clampToGround": true,
          "highlight": { "type": "click", "image": "img/marker/mark1.png" },
          "label": {
            "text": "{NAME}",
            "font_size": 17,
            "color": "#ffffff",
            "outline": true,
            "outlineColor": "#000000",
            "pixelOffsetY": -50,
            "distanceDisplayCondition": true,
            "distanceDisplayCondition_far": 2000,
            "distanceDisplayCondition_near": 0
          }
        }
      },
      "columns": [
        { "field": "NAME", "name": "名称" },
        { "field": "address", "name": "地址" },
        { "type": "html", "html": "<div style='text-align: right;color: #ff0000;padding-right: 10px;'>数据仅供参考</div>" },
        { "type": "button", "name": "查看详情", "callback": "showQueryArcServerInfo" }
      ],
      "columnsShow": {
        "where": ["NAME"],
        "table": ["NAME"]
      }
    },
    {
      "name": "停车场",
      "pid": 1,
      "url": "//server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/14",
      "symbol": {
        "styleOptions": {
          "image": "img/marker/mark4.png",
          "scale": 1,
          "scaleByDistance": true,
          "scaleByDistance_far": 20000,
          "scaleByDistance_farValue": 0.5,
          "scaleByDistance_near": 1000,
          "scaleByDistance_nearValue": 1,
          "highlight": { "type": "click", "image": "img/marker/mark2.png" },
          "label": {
            "text": "{NAME}",
            "font_size": 17,
            "color": "#ffffff",
            "outline": true,
            "outlineColor": "#000000",
            "pixelOffsetY": -50,
            "distanceDisplayCondition": true,
            "distanceDisplayCondition_far": 2000,
            "distanceDisplayCondition_near": 0
          }
        }
      },
      "columns": [
        { "field": "NAME", "name": "名称" },
        { "field": "address", "name": "地址" }
      ]
    },
    { "name": "道路", "id": 2 },
    {
      "name": "县道",
      "pid": 2,
      "url": "//server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/29",
      "symbol": {
        "styleOptions": {
          "color": "#00ff00",
          "width": 4,
          "clampToGround": true,
          "highlight": { "type": "click", "color": "#ff0000"}
        }
      },
      "columns": [
        { "field": "NAME", "name": "名称" },
        { "field": "address", "name": "地址" },
        {
          "field": "长度",
          "name": "长度",
          "type": "number",
          "unit": "米"
        }
      ],
      "columnsShow": {
        "where": ["NAME", "address"]
      }
    },
    {
      "name": "乡镇村道",
      "pid": 2,
      "url": "//server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/28",
      "symbol": {
        "styleOptions": {
          "color": "#3388ff",
          "width": 3,
          "clampToGround": true,
          "highlight": { "type": "click", "color": "#ff0000"}
        }
      },
      "columns": [
        { "field": "NAME", "name": "名称" },
        { "field": "address", "name": "地址" },
        {
          "field": "长度",
          "name": "长度",
          "type": "number",
          "unit": "米"
        }
      ],
      "columnsShow": {
        "where": ["NAME", "address"]
      }
    },
    { "name": "区域", "id": 3 },
    {
      "name": "建筑物",
      "pid": 3,
      "url": "//server.mars3d.cn/arcgis/rest/services/mars/hefei/MapServer/37",
      "symbol": {
        "styleOptions": {
          "color": "#0d3685",
          "outlineColor": "#0d3685",
          "opacity": 0.6,
          "highlight": { "type": "click", "color": "#ff0000"}
        }
      },
      "buildings": {
        "cloumn": "floor"
      },
      "columns": [
        { "field": "NAME", "name": "名称" },
        { "field": "floor", "name": "楼层" },
        {
          "field": "面积",
          "name": "面积",
          "type": "number",
          "unit": "平方米"
        }
      ],
      "columnsShow": {
        "where": ["NAME", "floor"],
        "table": ["NAME", "floor", "面积"]
      }
    }
  ]
}