Select to view content in your preferred language

Feature selection vs QueryPoint

927
2
04-13-2011 03:07 PM
DonFreeman
Emerging Contributor
To cause a feature selection in a feature layer we typically use something like
 MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp"
in the FeatureLayer. To cause an identify query, we typically use something like
MouseClick="QueryPoint_MouseClick"
in the Map. I am finding that these two clicks don't get along very well together. Usually only one or the other fires. If the identify is limited to the featureLayer, is there a way to combine them together so they work together?
Thanks
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
If MouseLeftButtonDown is marked e.Handled = true, MouseLeftButtonUp will not fire. Draw and Editor when enabled may be listening to the same events.

You can use the same Map.MouseClick event to perform your selection and identify. The following SDK sample, shows you how you can get the graphics from a MouseClick event: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple
0 Kudos
DonFreeman
Emerging Contributor
If MouseLeftButtonDown is marked e.Handled = true, MouseLeftButtonUp will not fire. Draw and Editor when enabled may be listening to the same events.

You can use the same Map.MouseClick event to perform your selection and identify. The following SDK sample, shows you how you can get the graphics from a MouseClick event: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple


Got it! Thanks Jenn.
0 Kudos