Select to view content in your preferred language

how to show only selected polygon in a map

472
1
04-23-2010 03:00 AM
kmirza
by
Emerging Contributor
Hi,
I am new to Flex api..
In my application when a user select/click a certain polygon on a map, only that perticular polygon should be displayed, rest of the area should turn to black.

I solution I tried is by defining two graphic layers
1) with map extent polygon of color black and
2) with the selected polygon geometry
now i want to subtract the selected polygon geometry i.e graphic layer 2 from the first one... how can i do that?? can i use mask to achieve that??

Is there any other easy way of doing it??? please help.. any help/suggestion will be highly appreciated.
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
You could put a black background behind the Map and then when they select a polygon, just turn the visibility of all the other graphics to false.
0 Kudos