1、npm install esri-leaflet --save

2、引入包

import Leaflet from "leaflet";
 
var esri = require("esri-leaflet");
 

3、添加底图

esri.basemapLayer("Topographic").addTo(this.map);

 

4、添加动态服务
 
esri.dynamicMapLayer({
url:"https://services.arcgisonline.com/arcgis/rest/services/Specialty/Soil_Survey_Map/MapServer",
opacity: 0.7
})
.addTo(this.map);

 

相关文章:

  • 2021-05-16
  • 2021-08-24
  • 2021-04-01
  • 2021-04-29
  • 2022-02-06
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2021-05-03
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案