随笔分类 - ArcGIS API for JavaScript4.x
摘要:问题描述 在使用geoJSONLayer加载geojson数据时,官方文档只支持单一类型的geojson数据加载,当一个geojson数据中出现两种类型的数据时可以尝试一下方法进行解决 本场景为:点击图层获取geojson,通过geoJSONLayer加载底图上,然后在通过popup显示当前点击位置
阅读全文
摘要:实例geojsonLayer时添加属性popupTemplate popupTemplate: { title: action, content: '点击了' } 设置title用于查询到多个graphic时能够区分 title: function(event) { return popupTile
阅读全文
摘要:1、用WMTSLayer创建影像(需要WMTS服务和对应的.xml文件) this.layer.tileLayer = new this.esri.TileLayer({ url }) 2、利用tileLayer创建图层,把图层放到GroupLayer中,然后再加载到map上 this.layer.
阅读全文

浙公网安备 33010602011771号