Changing the image used by a PictureMarkerSymbol using the setImage method does not change the size of the symbol in the ArcGIS Runtime SDK for Qt.
上次发布: December 14, 2015ArcGIS Runtime SDK for Qt
漏洞 ID 编号
BUG-000092860
已提交
December 9, 2015
上次修改时间
June 11, 2020
适用范围
ArcGIS Runtime SDK for Qt
找到的版本
10.2.6
服务器平台
Windows
客户端平台
7.0 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
With 10.2.x, just because the image setter is called a second time, does not mean the width and height setters will be called again. In any case, this situation will be avoided at the Quartz release, as there will be no default constructor. You will have to pass in a QImage or QUrl in the constructor, so to switch out the image, you will need to create a new PictureMarkerSymbol.
解决办法
Use the setHeight and setWidth methods to change the dimensions of the symbol.