//待服务加载完成后,设置视野范围到全图范围
layer.on('load', function () {
var extent = map.getLayer(map.layerIds[0]).fullExtent;
extent.spatialReference = map.spatialReference;
map.setExtent(extent);
});

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2022-02-09
  • 2022-12-23
  • 2021-08-04
  • 2021-10-15
  • 2021-11-13
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-10-26
  • 2021-08-01
  • 2021-07-27
相关资源
相似解决方案