wangzhibo
2021-12-21 7a7580575d08fa48750837f4bc93885bd83cac1f
delete tiled ol layer and add userid
2个文件已修改
15 ■■■■■ 已修改文件
mobile/road.html 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mobile/road_show.html 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mobile/road.html
@@ -8,7 +8,7 @@
    <!-- 移动设备 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" />
    <meta name="author" content="上海市道路交通环境监测平台" />
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit" />
    <!-- Chrome浏览器添加桌面快捷方式(安卓) -->
@@ -18,7 +18,7 @@
    <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" />
    <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"></script>
mobile/road_show.html
@@ -454,6 +454,7 @@
                    })
                });
                /*
                var tiled = new ol.layer.Tile({
                    visible: false,
                    source: new ol.source.TileWMS({
@@ -470,6 +471,7 @@
                        }
                    })
                });
                */
                var projection = new ol.proj.Projection({
                    code: 'EPSG:4326',
                    units: 'degrees',
@@ -481,10 +483,8 @@
                        attribution: false
                    }).extend([mousePositionControl]),
                    target: 'map',
                    layers: [
                        untiled,
                        tiled
                    ],
                    //layers: [untiled,tiled],
                    layers: [untiled],
                    view: new ol.View({
                        projection: projection
                    })
@@ -599,12 +599,13 @@
                    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:2;regiontype:1005;datetime:' + formPrams.datatime_+';querytype:'+formPrams.querytype_,
                        "viewparams": 'userid:'+userid+';regiontype:1005;datetime:' + formPrams.datatime_+';querytype:'+formPrams.querytype_,
                    };
                    if (filter.replace(/^\s\s*/, '').replace(/\s\s*$/, '') != "") {
                        if (filterType == "cql") {