cshenfu
2022-10-28 cdd61fe225ec02defd5707acbc5727fcadb9c7e8
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
<!DOCTYPE html>
<html class="no-js css-menubar" lang="zh-cn">
 
<head>
    <title>上海市道路交通环境监测平台</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!-- 移动设备 viewport -->
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" />
    <meta name="author" content="上海市道路交通环境监测平台 http://mars3d.cn" />
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit" />
    <!-- Chrome浏览器添加桌面快捷方式(安卓) -->
    <link rel="icon" type="image/png" href="img/favicon/favicon.png" />
    <meta name="mobile-web-app-capable" content="yes" />
    <!-- Safari浏览器添加到主屏幕(IOS) -->
    <link rel="icon" sizes="192x192" href="img/favicon/apple-touch-icon.png" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="apple-mobile-web-app-title" content="MarsGIS" />
 
    <!--第三方lib-->
    <script type="text/javascript" src="../lib/include-lib.js?time=20210803" libpath="../lib/" include="jquery,bootstrap-checkbox"></script>    
    <link href="../css/style.css?time=20210803" rel="stylesheet" />
    <link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../lib/bootstrap/bootstrap-datepicker/bootstrap-datetimepicker.css" rel="stylesheet" />
    <script src="../lib/bootstrap/bootstrap-datepicker/bootstrap-datetimepicker.js"></script>
    <script src="../lib/bootstrap/bootstrap-datepicker/bootstrap-datetimepicker.zh-CN.js"></script>
 
    <link rel="stylesheet" href="css/ol.css" type="text/css">
    <link href="css/dataTime.css" rel="stylesheet" />
 
    <script type="text/javascript" src="../js/changable_params.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
 
        ul,
        li {
            list-style: none;
        }
 
        .footbar {
            height: 50px;
            background: #fff;
            box-shadow: 0 -1px 6px rgba(13, 71, 161, 0.25);
            z-index: 9999999999999;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
        }
 
        .footbar ul {
            display: flex;
            overflow: hidden;
            margin: 8px 12px;
            border-radius: 3px;
        }
 
        .footbar ul li {
            flex: 1;
            font-size: 14px;
            line-height: 34px;
            color: #333;
            text-align: center;
            border: 1px solid rgba(83, 116, 167, 0.2);
        }
 
        .footbar ul li.active {
            font-weight: 500;
            color: #e0f7fa;
            background: #0d47a1;
            border: 1px solid 0d47a1;
        }
 
        .hidden {
            display: none;
        }
 
        .map-panel {
            height: calc(100vh - 50px);
            background: #fff;
            overflow: hidden;
        }
 
        .map-panel-item {
            width: 100%;
            height: 100%;
        }
 
        /*引用geoserver样式表*/
        /* .ol-zoom {
            top: 52px;
        } */
 
        .ol-toggle-options {
            z-index: 1000;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 4px;
            padding: 2px;
            position: absolute;
            left: 8px;
            top: 8px;
        }
 
        #updateFilterButton,
        #resetFilterButton {
            height: 22px;
            width: 22px;
            text-align: center;
            text-decoration: none !important;
            line-height: 22px;
            margin: 1px;
            font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
            font-weight: bold !important;
            background: rgba(0, 60, 136, 0.5);
            color: white !important;
            padding: 2px;
        }
 
        .ol-toggle-options a {
            background: rgba(0, 60, 136, 0.5);
            color: white;
            display: block;
            font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
            font-size: 19px;
            font-weight: bold;
            height: 22px;
            line-height: 11px;
            margin: 1px;
            padding: 0;
            text-align: center;
            text-decoration: none;
            width: 22px;
            border-radius: 2px;
        }
 
        .ol-toggle-options a:hover {
            color: #fff;
            text-decoration: none;
            background: rgba(0, 60, 136, 0.7);
        }
 
        body {
            font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
            font-size: small;
        }
 
        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
 
        .styleSelect {
            position: fixed;
            top: 54px;
            right: 10px;
            z-index: 999;
            height: 32px;
            line-height: 32px;
        }
 
        /* Toolbar styles */
        #toolbar {
            position: relative;
            padding-bottom: 0.5em;
        }
 
        #toolbar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
 
        #toolbar ul li {
            float: left;
            padding-right: 1em;
            padding-bottom: 0.5em;
        }
 
        #toolbar ul li a {
            font-weight: bold;
            font-size: smaller;
            vertical-align: middle;
            color: black;
            text-decoration: none;
        }
 
        #toolbar ul li a:hover {
            text-decoration: underline;
        }
 
        #toolbar ul li * {
            vertical-align: middle;
        }
 
        #map {
            clear: both;
            position: relative;
            width: 100%;
            height: calc(100vh - 44px);
            margin-top: 44px;
            border: none;
            background-color: darkslategrey;
        }
 
        #wrapper {
            width: 100%;
        }
 
        #location {
            float: right;
        }
 
        /* Styles used by the default GetFeatureInfo output, added to make IE happy */
        table.featureInfo,
        table.featureInfo td,
        table.featureInfo th {
            border: 1px solid #ddd;
            border-collapse: collapse;
            margin: 0;
            padding: 0;
            font-size: 90%;
            padding: .2em .1em;
        }
 
        table.featureInfo th {
            padding: .2em .2em;
            font-weight: bold;
            background: #eee;
        }
 
        table.featureInfo td {
            background: #fff;
        }
 
        table.featureInfo tr.odd td {
            background: #eee;
        }
 
        table.featureInfo caption {
            text-align: left;
            font-size: 100%;
            font-weight: bold;
            padding: .2em .2em;
        }
 
        .datetimepicker {
            right: 0;
            border-radius: 0;
        }
 
        .datetimepicker table {
            width: 100%;
        }
    </style>
 
    <script src="js/ol.js" type="text/javascript"></script>
 
</head>
 
<body>
    <!--道路展示 开始-->
    <div class="map-panel-item">
        <div id="toolbar" style="display: none; height: 0; overflow: hidden;">
            <ul>
                <li>
                    <a>WMS version:</a>
                    <select id="wmsVersionSelector" onchange="setWMSVersion(value)">
                        <option value="1.1.1">1.1.1</option>
                        <option value="1.3.0">1.3.0</option>
                    </select>
                </li>
                <li>
                    <a>Tiling:</a>
                    <select id="tilingModeSelector" onchange="setTileMode(value)">
                        <option value="untiled">Single tile</option>
                        <option value="tiled">Tiled</option>
                    </select>
                </li>
                <li>
                    <a>Antialias:</a>
                    <select id="antialiasSelector" onchange="setAntialiasMode(value)">
                        <option value="full">Full</option>
                        <option value="text">Text only</option>
                        <option value="none">Disabled</option>
                    </select>
                </li>
                <li>
                    <a>Format:</a>
                    <select id="imageFormatSelector" onchange="setImageFormat(value)">
                        <option value="image/png">PNG 24bit</option>
                        <option value="image/png8">PNG 8bit</option>
                        <option value="image/gif">GIF</option>
                        <option id="jpeg" value="image/jpeg">JPEG</option>
                        <option id="jpeg-png" value="image/vnd.jpeg-png">JPEG-PNG</option>
                        <option id="jpeg-png8" value="image/vnd.jpeg-png8">JPEG-PNG8</option>
                    </select>
                </li>
                <li>
                    <a>Styles:</a>
                    <select id="imageFormatSelector" onchange="setStyle(value)">
                        <option value="">Default</option>
                        <option value="polyline_road_co">polyline_road_co</option>
                        <option value="polyline_road_pm25">polyline_road_pm25</option>
                        <option value="polyline_road_no">polyline_road_no</option>
                        <option value="polyline_road_no2">polyline_road_no2</option>
                        <option value="polyline_road_nox">polyline_road_nox</option>
                        <option value="polyline_road_pm10">polyline_road_pm10</option>
                    </select>
                </li>
                <li>
                    <a>Width/Height:</a>
                    <select id="widthSelector" onchange="setWidth(value)">
                        <!--
                   These values come from a statistics of the viewable area given a certain screen area
                   (but have been adapted a litte, simplified numbers, added some resolutions for wide screen)
                   You can find them here: http://www.evolt.org/article/Real_World_Browser_Size_Stats_Part_II/20/2297/
                   -->
                        <option value="auto">Auto</option>
                        <option value="600">600</option>
                        <option value="750">750</option>
                        <option value="950">950</option>
                        <option value="1000">1000</option>
                        <option value="1200">1200</option>
                        <option value="1400">1400</option>
                        <option value="1600">1600</option>
                        <option value="1900">1900</option>
                    </select>
                    <select id="heigthSelector" onchange="setHeight(value)">
                        <option value="auto">Auto</option>
                        <option value="300">300</option>
                        <option value="400">400</option>
                        <option value="500">500</option>
                        <option value="600">600</option>
                        <option value="700">700</option>
                        <option value="800">800</option>
                        <option value="900">900</option>
                        <option value="1000">1000</option>
                    </select>
                </li>
                <li>
                    <a>Filter:</a>
                    <select id="filterType">
                        <option value="cql">CQL</option>
                        <option value="ogc">OGC</option>
                        <option value="fid">FeatureID</option>
                    </select>
                    <input type="text" size="80" id="filter" />
                    <a id="updateFilterButton" href="#" onClick="updateFilter()" title="Apply filter">Apply</a>
                    <a id="resetFilterButton" href="#" onClick="resetFilter()" title="Reset filter">Reset</a>
                </li>
            </ul>
        </div>
 
        <!--选择时间 开始-->
        <div class="input-group input-group-lg append_test">
            <div style="width:78px; height:44px; line-height: 1; border-radius: 0; font-size: 14px;"
                class="fa fa-globe input-group-addon dropdown-toggle" data-toggle="dropdown">
                <span id="current">小时</span>
            </div>
            <input type='text' class="form-control date" id='appDate' name="appDate" onchange="changetime()"
                style="height:44px;width:100%;display:none;" />
            <input type='text' class="form-control date" id='appDateHour' name="appDateHour" onchange="changetime()"
                style="height:44px;width:100%;" />
            <ul class="dropdown-menu dropdown-menu_datatime">
                <div class="layui-form">
                    <div class="layui-form-item">
                        <div class="layui-inline" style="margin-bottom: 10px;">
                            <div class="layui-input-inline">
                                <input type="radio" name="datatype" value="hour" title="小时数据" checked >
                                <input type="text" class="layui-input" id="datatype_hour" placeholder="yyyy-mm-dd hh">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <input type="radio" name="datatype" value="day" title="天数据" >
                                <input type="text" class="layui-input" id="datatype_day" placeholder="yyyy-mm-dd">
                            </div>
                        </div>
                    </div>
                </div>
            </ul>
        </div>
        <script type="text/javascript" src="js/dataTime.js"></script>
        <!--选择时间 结束-->
        <select id="imageFormatSelector" onchange="setStyle(value)" class="styleSelect">
            <option value="">Default</option>
            <option value="polyline_road_co">co</option>
            <option value="polyline_road_pm25">pm25</option>
            <option value="polyline_road_no">no</option>
            <option value="polyline_road_no2">no2</option>
            <option value="polyline_road_nox">nox</option>
            <option value="polyline_road_pm10">pm10</option>
        </select>
 
        <div id="map">
            <div class="ol-toggle-options ol-unselectable" style="display: none; height: 0; overflow: hidden;"><a title="Toggle options toolbar"
                    onClick="toggleControlPanel()" href="#toggle">...</a></div>
        </div>
        <div id="wrapper" class="hidden">
            <div id="location"></div>
            <div id="scale">
            </div>
            <div id="nodelist">
                <em>Click on the map to get feature info</em>
            </div>
            <script type="text/javascript">
                var pureCoverage = false;
                // if this is just a coverage or a group of them, disable a few items,
                // and default to jpeg format
                var format = 'image/png';
                var bounds = [120, 30,
                    123, 32];
                if (pureCoverage) {
                    document.getElementById('antialiasSelector').disabled = true;
                    document.getElementById('jpeg').selected = true;
                    format = "image/jpeg";
                }
 
                var supportsFiltering = true;
                if (!supportsFiltering) {
                    document.getElementById('filterType').disabled = true;
                    document.getElementById('filter').disabled = true;
                    document.getElementById('updateFilterButton').disabled = true;
                    document.getElementById('resetFilterButton').disabled = true;
                }
 
                var mousePositionControl = new ol.control.MousePosition({
                    className: 'custom-mouse-position',
                    target: document.getElementById('location'),
                    coordinateFormat: ol.coordinate.createStringXY(5),
                    undefinedHTML: '&nbsp;'
                });
 
                var untiled = new ol.layer.Image({                    
                    source: new ol.source.ImageWMS({
                        ratio: 1,
                        url: default_system_params.geoserver_url_predix + 'geoserver/konglu_58/wms',
                        params: {
                            'FORMAT': 'image/png',
                            'VERSION': '1.1.1',
                            "STYLES": 'polyline_road_pm25',
                            "LAYERS": 'konglu_58:vis_roadsection_' + getFormParams().querytype_,
                            "exceptions": 'application/vnd.ogc.se_inimage',
                            "BBOX": '120.84686279296875,30.25909423828125,121.98394775390625,32.00592041015625'
                        }
                    })
                });
 
                /*
                var tiled = new ol.layer.Tile({
                    visible: false,
                    source: new ol.source.TileWMS({
                        url: default_system_params.geoserver_url_predix + 'geoserver/konglu_58/wms',
                        params: {
                            'FORMAT': 'image/png',
                            'VERSION': '1.1.1',
                            tiled: true,
                            "STYLES": 'polyline_road_pm25',
                            "LAYERS": 'konglu_58:vis_roadsection_' + getFormParams().querytype_,
                            "exceptions": 'application/vnd.ogc.se_inimage',
                            "BBOX": '120.84686279296875,30.25909423828125,121.98394775390625,32.00592041015625',
                            tilesOrigin: 120 + "," + 30
                        }
                    })
                });
                */
                var projection = new ol.proj.Projection({
                    code: 'EPSG:4326',
                    units: 'degrees',
                    axisOrientation: 'neu',
                    global: true
                });
                var map = new ol.Map({
                    controls: ol.control.defaults({
                        attribution: false
                    }).extend([mousePositionControl]),
                    target: 'map',
                    //layers: [untiled,tiled],
                    layers: [untiled],
                    view: new ol.View({
                        projection: projection
                    })
                });
                map.getView().on('change:resolution', function (evt) {
                    var resolution = evt.target.get('resolution');
                    var units = map.getView().getProjection().getUnits();
                    var dpi = 25.4 / 0.28;
                    var mpu = ol.proj.METERS_PER_UNIT[units];
                    var scale = resolution * mpu * 39.37 * dpi;
                    if (scale >= 9500 && scale <= 950000) {
                        scale = Math.round(scale / 1000) + "K";
                    } else if (scale >= 950000) {
                        scale = Math.round(scale / 1000000) + "M";
                    } else {
                        scale = Math.round(scale);
                    }
                    document.getElementById('scale').innerHTML = "Scale = 1 : " + scale;
                });
                map.getView().fit(bounds, map.getSize());
                map.on('singleclick', function (evt) {
                    document.getElementById('nodelist').innerHTML = "Loading... please wait...";
                    var view = map.getView();
                    var viewResolution = view.getResolution();
                    var source = untiled.get('visible') ? untiled.getSource() : tiled.getSource();
                    var url = source.getGetFeatureInfoUrl(
                        evt.coordinate, viewResolution, view.getProjection(),
                        { 'INFO_FORMAT': 'text/html', 'FEATURE_COUNT': 50 });
                    if (url) {
                        document.getElementById('nodelist').innerHTML = '<iframe seamless src="' + url + '"></iframe>';
                    }
                });
 
                // sets the chosen WMS version
                function setWMSVersion(wmsVersion) {
                    map.getLayers().forEach(function (lyr) {
                        lyr.getSource().updateParams({ 'VERSION': wmsVersion });
                    });
                    if (wmsVersion == "1.3.0") {
                        origin = bounds[1] + ',' + bounds[0];
                    } else {
                        origin = bounds[0] + ',' + bounds[1];
                    }
                    tiled.getSource().updateParams({ 'tilesOrigin': origin });
                }
 
                // Tiling mode, can be 'tiled' or 'untiled'
                function setTileMode(tilingMode) {
                    if (tilingMode == 'tiled') {
                        untiled.set('visible', false);
                        tiled.set('visible', true);
                    } else {
                        tiled.set('visible', false);
                        untiled.set('visible', true);
                    }
                }
 
                function setAntialiasMode(mode) {
                    map.getLayers().forEach(function (lyr) {
                        lyr.getSource().updateParams({ 'FORMAT_OPTIONS': 'antialias:' + mode });
                    });
                }
 
                // changes the current tile format
                function setImageFormat(mime) {
                    map.getLayers().forEach(function (lyr) {
                        lyr.getSource().updateParams({ 'FORMAT': mime });
                    });
                }
 
                function setStyle(style) {
                    map.getLayers().forEach(function (lyr) {
                        lyr.getSource().updateParams({ 'STYLES': style });
                    });
                }
 
                function setWidth(size) {
                    var mapDiv = document.getElementById('map');
                    var wrapper = document.getElementById('wrapper');
 
                    if (size == "auto") {
                        // reset back to the default value
                        mapDiv.style.width = null;
                        wrapper.style.width = null;
                    }
                    else {
                        mapDiv.style.width = size + "px";
                        wrapper.style.width = size + "px";
                    }
                    // notify OL that we changed the size of the map div
                    map.updateSize();
                }
 
                function setHeight(size) {
                    var mapDiv = document.getElementById('map');
                    if (size == "auto") {
                        // reset back to the default value
                        mapDiv.style.height = null;
                    }
                    else {
                        mapDiv.style.height = size + "px";
                    }
                    // notify OL that we changed the size of the map div
                    map.updateSize();
                }
 
                function updateFilter() {
                    if (!supportsFiltering) {
                        return;
                    }
                    var filterType = document.getElementById('filterType').value;
                    var filter = document.getElementById('filter').value;
                    var formPrams = getFormParams();
                    // by default, reset all filters
                    var userid = localStorage.getItem("userid")||2;
                    var filterParams = {
                        'FILTER': null,
                        'CQL_FILTER': null,
                        'FEATUREID': null,
                        "LAYERS": 'konglu_58:vis_roadsection_' + formPrams.querytype_,
                        "viewparams": 'userid:'+userid+';regiontype:1005;datetime:' + formPrams.datatime_+';querytype:'+formPrams.querytype_,
                    };
                    if (filter.replace(/^\s\s*/, '').replace(/\s\s*$/, '') != "") {
                        if (filterType == "cql") {
                            filterParams["CQL_FILTER"] = filter;
                        }
                        if (filterType == "ogc") {
                            filterParams["FILTER"] = filter;
                        }
                        if (filterType == "fid")
                            filterParams["FEATUREID"] = filter;
                    }
                    // merge the new filter definitions
                    map.getLayers().forEach(function (lyr) {
                        lyr.getSource().updateParams(filterParams);
                    });
                }
 
                function resetFilter() {
                    if (!supportsFiltering) {
                        return;
                    }
                    document.getElementById('filter').value = "";
                    updateFilter();
                }
 
                // shows/hide the control panel
                function toggleControlPanel() {
                    var toolbar = document.getElementById("toolbar");
                    if (toolbar.style.display == "none") {
                        toolbar.style.display = "block";
                    }
                    else {
                        toolbar.style.display = "none";
                    }
                    map.updateSize()
                }
 
                function getFormParams() {
                    var datatime_, querytype_;
                    if ($("#appDateHour")[0].style.display == 'none') {
                        datatime_ = $("#appDate").val();
                        querytype_ = 'day';
                        datatime_ = datatime_.replace(/\:/g,"").replace(/-/g,"").replace(/\s+/g,"");
                    } else {
                        datatime_ = $("#appDateHour").val();
                        querytype_ = 'hour';
                        datatime_ = datatime_.replace(/\:/g,"").replace(/-/g,"").replace(/\s+/g,"");
                    }      
                    return {"datatime_":datatime_,"querytype_":querytype_} ; 
                }
 
                function changetime() {
                    var datatime_, querytype_;
                    if ($("#appDateHour")[0].style.display == 'none') {
                        datatime_ = $("#appDate").val();
                        querytype_ = 'day';
                        datatime_ = datatime_.replace(/\:/g,"").replace(/-/g,"").replace(/\s+/g,"");
                        //调用刷新地图
                    } else {
                        datatime_ = $("#appDateHour").val();
                        querytype_ = 'hour';
                        datatime_ = datatime_.replace(/\:/g,"").replace(/-/g,"").replace(/\s+/g,"");
                        //调用刷新地图
                    }               
                    updateFilter(); 
                }
 
            </script>
        </div>
    </div>
    <!--道路展示 结束-->
</body>
 
</html>