clear seprated Graphics

2362
2
Jump to solution
04-17-2016 05:55 AM
behsoh
by
New Contributor II

Hi,

I have a drawing tool and a buffer tool.

both add graphics to map. using:

var drawing = new Graphic()

map.graphics.add(drawing );

var buffer = new Graphic()

map.graphics.add(buffer );

is there any way to clean them separately

one for only drawings, another for buffers.

0 Kudos
1 Solution

Accepted Solutions
ChenLi2
New Contributor III

Hi,

Maybe you could create two seperate graphicslayer for each one, then add/clear graphics for each graphicslayer?

Chen

View solution in original post

2 Replies
ChenLi2
New Contributor III

Hi,

Maybe you could create two seperate graphicslayer for each one, then add/clear graphics for each graphicslayer?

Chen

behsoh
by
New Contributor II

Thanks chen, i think i know what im gonna do now.

0 Kudos