12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <!DOCTYPE html>
- <html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
- <script type="text/javascript" src="http://172.20.98.215:8080/arcgis_js_api/library/3.22/rgis/Rinit.js"></script>
- <title></title>
- <style type="text/css">
- *{
- margin: 0;
- padding: 0;
- }
- html, body, #map{
- height: 100%;
- width: 100%;
- }
- </style>
- <script>
- var host="http://172.17.109.19:8080";
- var serverIP="http://172.17.109.19:8080";
- var itemName="/Portal";
- var map_wkid = "4490";
- window.urlPath = host;
- document.write("<script src='http://172.17.109.19:8080/Portal/arcgis2D.js'><\/script>");
- document.write('<script src="'+host+itemName+'/js/jquery/jquery-1.9.1.min.js"><\/script>');
- </script>
- </head>
- <body>
- <div id="map"></div>
- </body>
- <script type="text/javascript">
- var map;
- require([
- "esri/map",
- "rgis/tools/TokenUtil",
- "rgis/layers/TianDiTuLayer",
- "esri/layers/ArcGISDynamicMapServiceLayer",
- "esri/geometry/Extent",
- "dojo/domReady!"
- ], function (Map,TokenUtil, TianDiTuLayer,ArcGISDynamicMapServiceLayer, Extent) {
- map = new Map("map", {
- logo: false,
- sliderPosition: "bottom-right",
- sliderStyle: "small"
-
- });
- var layer = new ArcGISDynamicMapServiceLayer("http://172.20.98.156:8080/OneMapServer/rest/services/BaseMap_white/MapServer")
- var xlLayer = new ArcGISDynamicMapServiceLayer("http://172.20.98.156:8080/OneMapServer/rest/services/SH_XL/MapServer")
- var czLayer = new ArcGISDynamicMapServiceLayer("http://172.20.98.156:8080/OneMapServer/rest/services/SH_CZXL_V2/MapServer")
- map.addLayer(layer)
- map.addLayer(xlLayer)
- map.addLayer(czLayer)
- });
- </script>
- </html>
|