WebMap是从ArcGIS Online或者ArcGIS for Portal item上获取显示到用户的界面中。

需要的是地图的ID。

创建一个新的网络地图需要设置ID号,然后再用地图底图MapView或者SceneView显示出来。

引用:"esri/WebMap"

  var webmap = new WebMap({

    portalItem:{id:"f2e9b762544945f390ca4ac3671cfa72"}});

  只要用到平面底图,因此在新建的MapView中加入网络地图

  “esri/MapView”

  var view = new MapView({

    map:webmap,

    container:"viewDiv"});

网络地图WebMap介绍

 

相关文章:

  • 2021-11-23
  • 2021-07-12
  • 2021-06-05
  • 2022-01-07
  • 2021-05-16
  • 2021-08-20
  • 2021-08-30
猜你喜欢
  • 2021-12-19
  • 2021-07-27
  • 2021-09-24
  • 2022-12-23
  • 2021-11-12
  • 2021-08-11
  • 2021-10-22
相关资源
相似解决方案