如何使用arcgis api加载土地

时间:2016-02-04 05:57:40

标签: maps arcgis arcgis-js-api

有没有办法使用arcgis API加载土地批次视图?我正在使用此代码进行街景视图

var map;

      require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/domReady!"],
        function(Map, ArcGISTiledMapServiceLayer) {

          map = new Map("map",{logo: false, 
            sliderStyle: "large"
        });

var _baseMapHost = "http://www.onemap.sg/ArcGIS/rest/services/";
var _baseMapURL = _baseMapHost + "basemap/MapServer";
var tileHost1 = "http://t1.onemap.sg/ArcGIS/rest/services/"
var tileHost2 = "http://t2.onemap.sg/ArcGIS/rest/services/"
var _baseMapURL1;
var _baseMapURL2;
 _baseMapURL = _baseMapHost + "LOT_VIEW" + "/MapServer";
 _baseMapURL1 = tileHost1 + "LOT_VIEW" + "/MapServer";
 _baseMapURL2 = tileHost2 + "LOT_VIEW" + "/MapServer";


          var tiled = new ArcGISTiledMapServiceLayer(_baseMapURL, { tileServers: [_baseMapURL1, _baseMapURL2] });
         //alert(toString(tiled)); 
          map.addLayer(tiled);
        }
      );

但是在街道的地方,我想看看很多地方。

0 个答案:

没有答案