版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/rookiepm/article/details/84840521 其中遇到的坑: 1.未开启feature server 上代码: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>测试</title> <script src="https://js.arcgis.com/4.9/"></script> <script> function addFeature(){ var polygon={ type: "polygon", // autocasts as new Polygon() rings: [ [465373.67283938953, 4574685.605095486], [465448.7368793035, 4574662.143328166], [465442.06908027834, 4574640.809887505], [465367.0048759384, 4574664.271654826], [465373.67283938953, 4574685.605095486] ] }; var url=