Arcgis 底图
index.html
<!DOCTYPE html>
<html>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>底图与地理投影 - Arcgis 底图</title>
  <link rel="icon" href="/examples/static/resource/image/favicon.png" />
  <style type="text/css">
    html,body{margin:0px;height:100%;width:100%}
    .container{width:100%;height:100%}
  </style>
  <link rel="stylesheet" href="//rd.sz-map.com/libs/gm/gl/gl.min.css">
  <script type="text/javascript" src="//rd.sz-map.com/libs/gm/gl/gl.min.js"></script>
  <body>
    
    <div id="map" class="container"></div>

    <script>
      function initMap() {
        this.map = new GL.Map('map', {
          center: "120.650847,31.3092434",
          zoom: 3,
          zoomControl: false,
          scaleControl: false
        });
      
        var crs2 = {
          origin: '119.75,32.25',
          resolutions: [
            9.765664903423653e-4,
            4.882832451711827e-4,
            2.4414162258559134e-4,
            1.2207081129279567e-4,
            6.103540564766688e-5,
            3.0517702822564394e-5,
            1.5258851412551242e-5,
            7.629425705006574e-6,
            3.814712853772333e-6,
            1.90735154359766e-6
          ]
        };
      
        var esriBaseLayer = GL.LayerLookup.createEsriTiledLayer(
          'http://58.210.98.62:7080/arcgis209/rest/services/SZYX20170620/MapServer',
          {
            maxBounds: '119.89,30.75;121.406,32.08',
            preview: '/examples/static/images/esri.png'
          },
          crs2
        );
      
        this.map.addBaseLayer(esriBaseLayer);
      }
      
      GL.init(initMap, '/examples/static/conf.json');

    </script>
  </body>
</html>
已复制!