Polygon blink.

2948
2
Jump to solution
12-08-2015 07:59 AM
AliaksandrKantesvoi
New Contributor

Hello, I created test project https://github.com/powerscin/ArcGisTest

And I try make drag and drop pins in polygones.

And if i add 5-8 pins, and try drag pin with intercept lines - polygon blink.

Maybe it's problem with performance?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
GagandeepSingh
Occasional Contributor II

Try setting the `renderingMode` on graphics layer to `Dynamic` and it should be fine. As shown below:

self.graphicsLayer = [[AGSGraphicsLayer alloc]initWithFullEnvelope:nil renderingMode:AGSGraphicsLayerRenderingModeDynamic];

The feature was introduced in version 10.2.

Improved rendering of graphics

AGSGraphicsLayer now supports 2 rendering modes - dynamic and static. In dynamic mode, graphics update dynamically as you interact with the map, always appearing clean and crisp, constantly repositioned and reoriented to be face-up as you rotate the map. In static, graphics are first rasterized and then rendered on the map. This can lead to some brief pixelation of the symbols as you navigate the map. Static mode provides a significant performance improvement, allowing you to display many more graphics at the same time. The default is static mode, and is the traditional way graphics have been drawn in past releases. Dynamic mode is new at this release and is best suited for cases when you have a small number of graphics (vertices) that need to be updated frequently.

View solution in original post

0 Kudos
2 Replies
GagandeepSingh
Occasional Contributor II

Try setting the `renderingMode` on graphics layer to `Dynamic` and it should be fine. As shown below:

self.graphicsLayer = [[AGSGraphicsLayer alloc]initWithFullEnvelope:nil renderingMode:AGSGraphicsLayerRenderingModeDynamic];

The feature was introduced in version 10.2.

Improved rendering of graphics

AGSGraphicsLayer now supports 2 rendering modes - dynamic and static. In dynamic mode, graphics update dynamically as you interact with the map, always appearing clean and crisp, constantly repositioned and reoriented to be face-up as you rotate the map. In static, graphics are first rasterized and then rendered on the map. This can lead to some brief pixelation of the symbols as you navigate the map. Static mode provides a significant performance improvement, allowing you to display many more graphics at the same time. The default is static mode, and is the traditional way graphics have been drawn in past releases. Dynamic mode is new at this release and is best suited for cases when you have a small number of graphics (vertices) that need to be updated frequently.

0 Kudos
AliaksandrKantesvoi
New Contributor

Thanks a lot! It's a good solution

0 Kudos