graphic layer中线要素采用dash符号渲染类型,放大后符号异常呈现锯齿效果

在graphic layer中绘制的线要素,采用不同的线符号类型时,渲染结果表现不一致。实线(solid)时渲染正常。如果采用dash, dash dot, dot等符号类型在小比例尺的时候显示正常,但是放大后线要素呈现异常锯齿效果。
已邀请:

马克玲

赞同来自:

【解决办法】:
        问题出现的原因是graphicLayer默认采用了static的模式,切换成dynamic模式后,dash符号渲染就正常了,所以这个问题并不是bug,而是源于产品设计。

修改的样例代码:



AGSEnvelope *envelope = [AGSEnvelope envelopeWithXMin:119 ymin:30 xmax:120 ymax:31 spatialReference: [AGSSpatialReference spatialReferenceWithWKID:4326]];

AGSGraphicsLayer *gl = [[AGSGraphicsLayer alloc] initWithFullEnvelope:envelope renderingMode:AGSGraphicsLayerRenderingModeDynamic];

要回复问题请先登录注册