arcgis10.0 切片併發布服務及驗證

一、切片參考網址:https://jingyan.baidu.com/article/fa4125accc6bef28ac7092d7.htmljavascript

 

二、經過下面代碼驗證  參考網址https://www.cnblogs.com/GISForFlex/p/3583535.htmlcss

  注意更改引用地址,此處只用於驗證發佈的切片地圖,其餘地圖驗證思路一致,只是接口不同。html

<!DOCTYPE html><html><head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title></title>    <link rel="stylesheet" href="http://192.168.70.6/arcgis_js_api/library/3.14/3.14/esri/css/esri.css" />    <style>        html, body, #map {            height: 100%;            width: 100%;            margin: 0;            padding: 0;        }    </style>    <script type="text/javascript" src="http://192.168.70.6/arcgis_js_api/library/3.14/3.14/init.js"></script>    <script>        var map;        require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/domReady!"],        function (Map, ArcGISTiledMapServiceLayer) {            map = new esri.Map("map");            var tiled = new ArcGISTiledMapServiceLayer("http://192.168.70.6/ArcGIS/rest/services/DX/SZDX/MapServer");            map.addLayer(tiled);        });    </script></head><body>    <div id="map"></div></body></html>
相關文章
相關標籤/搜索