delete tiled ol layer and add userid
| | |
| | | <!-- 移动设备 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浏览器添加桌面快捷方式(安卓) --> |
| | |
| | | <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> |
| | |
| | | }) |
| | | }); |
| | | |
| | | /* |
| | | var tiled = new ol.layer.Tile({ |
| | | visible: false, |
| | | source: new ol.source.TileWMS({ |
| | |
| | | } |
| | | }) |
| | | }); |
| | | */ |
| | | var projection = new ol.proj.Projection({ |
| | | code: 'EPSG:4326', |
| | | units: 'degrees', |
| | |
| | | attribution: false |
| | | }).extend([mousePositionControl]), |
| | | target: 'map', |
| | | layers: [ |
| | | untiled, |
| | | tiled |
| | | ], |
| | | //layers: [untiled,tiled], |
| | | layers: [untiled], |
| | | view: new ol.View({ |
| | | projection: projection |
| | | }) |
| | |
| | | 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") { |