漏洞 ID 编号 |
BUG-000154723 |
已提交 | December 22, 2022 |
上次修改时间 | February 2, 2023 |
适用范围 | ArcGIS Web AppBuilder |
找到的版本 | 10.9.1 |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
状态 | In Review
该问题正在审查中。 审查过程可确保问题包含所有必要信息、易于理解、不与现有问题重复,且为关于漏洞或增强功能的有效请求。 在此阶段,可能会联系您进行说明或提供其他信息。
|
解决办法
- Open the source code for the Visibility widget from ArcGIS Web AppBuilder Developer edition by going to widgets/Visibility/js. Then open portal-utils.js. (See photo "step1")
- Observe the getFeatureServiceParams function within portal-utils.js. Observe the two lines with spatialReference are set to use spatial reference 102100 (Web Mercator Auxiliary Sphere). (See photo "step2")
- Change the two spatial references from 102100. For example, if using WGS84, these values are changed to 4326. (See photo "step3").
- After doing this, the Visibility widget works successfully with a spatial reference that is not 102100.
Note that this workaround requires ArcGIS Web AppBuilder Developer edition. This software defect has been logged for ArcGIS Web AppBuilder, but there seems to be no current workarounds other than using Developer edition or using basemaps with a spatial reference of 102100.
重现步骤