| | |
| | | <html lang="zh"> |
| | | |
| | | <head> |
| | | <meta charset="UTF-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="ie=edge" /> |
| | | <title>Document</title> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | <link rel="stylesheet" href="./lib/layui/css/layui.css" /> |
| | | <link rel="stylesheet" href="./css/forestry-map.css" /> |
| | | <link type="text/css" rel="stylesheet" href="framework.css" /> |
| | | <link rel="stylesheet" href="./lib/zTree_v3//css/metroStyle/metroStyle.css"> |
| | | <style> |
| | | .map_content { |
| | | position: relative |
| | | } |
| | | </style> |
| | | <script src="./lib/jquery.js"></script> |
| | | <script src="./lib/js.cookie.min.js"></script> |
| | | <script src="./js/request.js"></script> |
| | | <script src="js/layer/layer.js"></script> |
| | | <script src="js/laydate/laydate.js"></script> |
| | | <script type="text/javascript" src="js/comm/heard.js"></script> |
| | | <!-- <script type="text/javascript" src="js/script.js"></script>--> |
| | | <script src="./lib/layui/layui.js"></script> |
| | | <script src="env.js"></script> |
| | | |
| | | <script type="text/javascript" |
| | | src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | <script src='./lib/zTree_v3/js/jquery.ztree.all.js'></script> |
| | | <script> |
| | | var _framework = null; |
| | | var _AppEvent = null; |
| | | |
| | | function getQueryStringByKey(key) { |
| | | return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1]; |
| | | } |
| | | var ISinit = getQueryStringByKey('ISinit'); |
| | | var openId = getQueryStringByKey('openid'); |
| | | if(ISinit == null){ |
| | | init(openId,null); |
| | | } |
| | | function locations(res) { |
| | | require(["dojo/topic"], |
| | | function (topic) { |
| | | topic.publish("location", res); |
| | | } |
| | | ); |
| | | } |
| | | function init(openId,locationObj) { |
| | | require(["base/framework", "base/AppEvent"], |
| | | function (framework, AppEvent) { |
| | | _framework = new framework(); |
| | | _framework.onSiderContainerShow(); |
| | | _framework.resize(); |
| | | _AppEvent = AppEvent; |
| | | if (locationObj != null){ |
| | | //获取设备id |
| | | window.clientID = locationObj.clientID; |
| | | } |
| | | _AppEvent.addAppEventListener("mapLoad", function(map){ |
| | | if (locationObj && locationObj != null) { |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 16); |
| | | } |
| | | }); |
| | | if (openId) showFun(openId); |
| | | <meta charset="UTF-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="ie=edge" /> |
| | | <title>Document</title> |
| | | <link rel="stylesheet" type="text/css" href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | <link rel="stylesheet" type="text/css" href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | <link rel="stylesheet" href="./lib/layui/css/layui.css" /> |
| | | <link rel="stylesheet" href="./css/forestry-map.css" /> |
| | | <link type="text/css" rel="stylesheet" href="framework.css" /> |
| | | <link rel="stylesheet" href="./lib/zTree_v3//css/metroStyle/metroStyle.css"> |
| | | <style> |
| | | .map_content { |
| | | position: relative |
| | | } |
| | | ); |
| | | } |
| | | </style> |
| | | <script src="./lib/jquery.js"></script> |
| | | <script src="./lib/js.cookie.min.js"></script> |
| | | <script src="./js/request.js"></script> |
| | | <script src="js/layer/layer.js"></script> |
| | | <script src="js/laydate/laydate.js"></script> |
| | | <script type="text/javascript" src="js/comm/heard.js"></script> |
| | | <!-- <script type="text/javascript" src="js/script.js"></script>--> |
| | | <script src="./lib/layui/layui.js"></script> |
| | | <script src="env.js"></script> |
| | | |
| | | function showFun(id) { |
| | | _AppEvent.dispatchAppEvent(_AppEvent.RUN_WIDGET, id); |
| | | } |
| | | <script type="text/javascript" src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | <script src='./lib/zTree_v3/js/jquery.ztree.all.js'></script> |
| | | <script> |
| | | var _framework = null; |
| | | var _AppEvent = null; |
| | | |
| | | function getQueryStringByKey(key) { |
| | | return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1]; |
| | | } |
| | | var ISinit = getQueryStringByKey('ISinit'); |
| | | var openId = getQueryStringByKey('openid'); |
| | | if (ISinit == null) { |
| | | init(openId, null); |
| | | } |
| | | |
| | | </script> |
| | | function locations(res) { |
| | | require(["dojo/topic"], |
| | | function(topic) { |
| | | topic.publish("location", res); |
| | | } |
| | | ); |
| | | } |
| | | |
| | | function init(openId, locationObj) { |
| | | require(["base/framework", "base/AppEvent"], |
| | | function(framework, AppEvent) { |
| | | _framework = new framework(); |
| | | _framework.onSiderContainerShow(); |
| | | _framework.resize(); |
| | | _AppEvent = AppEvent; |
| | | if (locationObj != null) { |
| | | //获取设备id |
| | | window.clientID = locationObj.clientID; |
| | | } |
| | | _AppEvent.addAppEventListener("mapLoad", function(map) { |
| | | if (locationObj && locationObj != null) { |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x, locationObj.y, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })), 16); |
| | | } |
| | | }); |
| | | if (openId) showFun(openId); |
| | | } |
| | | ); |
| | | } |
| | | |
| | | function showFun(id) { |
| | | _AppEvent.dispatchAppEvent(_AppEvent.RUN_WIDGET, id); |
| | | } |
| | | </script> |
| | | </head> |
| | | |
| | | <body> |
| | | |
| | | <div class="map_content"> |
| | | <div class="map_content"> |
| | | |
| | | <div id="mapTool" class="map_tool"> |
| | | <div id="mapTool" class="map_tool"> |
| | | |
| | | <div id="app_content"> |
| | | <div id="tabcontainer"></div> |
| | | <div id="mapcontentClass"></div> |
| | | </div> |
| | | <div id="app_content"> |
| | | <div id="tabcontainer"></div> |
| | | <div id="mapcontentClass"></div> |
| | | </div> |
| | | |
| | | <div class="map_tool_monitor"> |
| | | <div class="map_tool_monitor"> |
| | | |
| | | <div class="monitorClose"> |
| | | <img id="monitorClose" src="./images/map-close.png" alt="" /> |
| | | <p>关闭</p> |
| | | </div> |
| | | <div class="monitorClose"> |
| | | <img id="monitorClose" src="./images/map-close.png" alt="" /> |
| | | <p>关闭</p> |
| | | </div> |
| | | |
| | | <div class="mon-title" id="monTitle"><span></span></div> |
| | | <div class="map_tool_monitor_content" id="map_tool_monitor_content"> |
| | | <div class="mon-title" id="monTitle"><span></span></div> |
| | | <div class="map_tool_monitor_content" id="map_tool_monitor_content"> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </body> |
| | | <script src="./js/monitor.js"></script> |
| | | <script src="./js/forestry-map.js"></script> |
| | | |
| | | </html> |
| | | </html> |