Classic加载天地图后,再加载地图服务异常

0 投票
        let resolutions = [1.40625, 0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125,
          0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125,
          0.00034332275390625, 0.000171661376953125, 0.0000858306884765625, 0.00004291534423828125,
          0.000021457672119140632,
          0.000010728836059570316, 0.000005364418029785155
        ]
        let matrixIds = []
        for (let i = 0; i < resolutions.length; ++i) {
          matrixIds[i] = {
            identifier: i
          }
        }
        let tiandituImage = GLOBAL_SETTING.SUPERMAP_CONFIG.map.tiandituImage
        let tiandtuImgLayer = new SuperMap.Layer.WMTS({
          name: '全国影像图',
          url: "http://t0.tianditu.gov.cn/img_c/wmts?tk=********",
          layer: "img",
          style: "default",
          resolutions: resolutions,
          matrixIds: matrixIds,
          matrixSet: "c",
          format: "tiles",
          opacity: 1,
          requestEncoding: "KVP"
        });
        map.addLayer(tiandtuImgLayer);
        let tiandituTile = GLOBAL_SETTING.SUPERMAP_CONFIG.map.tiandituTile
        let tianduTileLayer = new SuperMap.Layer.WMTS({
          name: "全国影像图标签",
          url: "http://t0.tianditu.gov.cn/cia_c/wmts?tk=********",
          layer: "cia",
          style: "default",
          resolutions: resolutions,
          matrixIds: matrixIds,
          matrixSet: "c",
          format: "tiles",
          opacity: 1,
          requestEncoding: "KVP"
        });
        map.addLayer(tianduTileLayer);

如上方式引入天地图影像后,天地图能显示,但是再加载iserver发布的map服务时,map服务要么不显示,要么显示不正常,左右拖动map服务也不刷新

      let gridLayer = new SuperMap.Layer.TiledDynamicRESTLayer("责任网格", mapServerUrl);
      map.addLayer(gridLayer);

请问这种情况怎么解决呢?谢谢。

另外supermap classic api怎么加载arcgis server (动态服务) 呢?一直加载不成功

9月 11 分类:  48次浏览 | 用户: ibrucekong 才疏学浅 (18 分)
修改于 9月 12 用户:ibrucekong

1个回答

0 投票

您好,您map服务的分辨率这些是一致的吗,叠加图层您可以参考一下https://iclient.supermap.io/examples/classic/editor.html#map_overlayLayer

9月 13 用户: y_98 才高八斗 (815 分)
...