Select to view content in your preferred language

ArcGIS JavaScript API: Feature Selection and Display the Graphic Extent

2173
2
Jump to solution
10-07-2014 03:33 AM
HabG_
by
Frequent Contributor

Hi All,

I'm using this (Feature layer with selection) sample to select features. But after drawing the extent it shows the selected features as shown in Figure A. How do I make it to display both the selected features and the extent graphics as shown in Figure B.

Figure A

featureselection2.jpg

Figure B

featureselection.jpg

0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

Hi Hab,

You can add the extent geometry that's returned from the "DrawEnd' event to a graphic.  Take a look at this JS Fiddle.

View solution in original post

2 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Hab,

You can add the extent geometry that's returned from the "DrawEnd' event to a graphic.  Take a look at this JS Fiddle.

HabG_
by
Frequent Contributor

Thanks Jake.

0 Kudos