How to accelerate ClearGraphics for a layer which contains many Graphics (about 40000) The graphics are Simplemarkers. Thanks

4201
3
04-08-2016 10:51 PM
Labels (1)
DanaRotstein2
New Contributor

How to accelerate ClearGraphics for a layer which contains many Graphics (about 40000) The graphics are Simplemarkers. Thanks

0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

Please can you provide some example code (preferably a self-contained standalone app) which demonstrates the issue you are seeing?

Cheers

Mike

0 Kudos
DanaRotstein2
New Contributor

Hi

Thanks for your answer.

I create a cloud of graphics .

The graphics a points in a circle with 10 km radius.

All the graphics have the same symbol - SimpleMarker 2x2 pixel each one ,

style diamond.

I create a list of graphics and I put the graphics in a Graphic layer.

The number of graphics is aprox. 40000.

The graphics are displayed on the map.

When I want to draw another cloud in other place on the map, I must clear

the previous graphics

I use layer.ClearGraphics .

This operation is very long.Sometimes 1.5 minutes.

Thanks

Dana

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Please can you share your code?

Cheers

Mike

0 Kudos