Select to view content in your preferred language

Map_MouseLeftButtonUp not firing when clicked n some panel covers the clicked point.

478
1
04-01-2014 11:16 AM
Ravichandran_M_Kaushika
Regular Contributor
dear Readers,

thanks for taking the time to read it.  Our Silverlight app is working fine.  we have 1 issue - do not know the best way to resolve it:

when user clicks on the Silverlight map, if the clicked point happens to be a graphic attached to a feature layer, then the feature graphic is selected for 'editing' - during this process new attribute panel (custom created) will open.   Before the point on the map is clicked, the app displays a narrow panel that has state names /county names/ and entity numbers listed as combo boxes.

if the point happens to b a graphic point associated with a feature editable layer service, a different wider 'custom' panel is opened by the app. 

PROBLEM: if the panel covers the clicked point, then the Map_MouseLeftButtonUp is not fired and the point is not released from selection and sticks to the mouse.

Map_MouseLeftButtonDown function, the map point is evaluated and identified to see whether it is associated with a feature layer graphic and if yes, an attribute panel is opened.

to reproduce, on the map_mouseleftButtonDown, on graphic =true, open a panel - once we know the extent of the panel to b opened, center the map to ensure that the proposed point will be 'covered' by the new panel and select the graphic.

the graphic will stick to the mouse and the users have no way to let it go.

any ideas or work around will be good.

regards
ravi.
0 Kudos
1 Reply
AsserSwelam1
Deactivated User
Try any of this solutions

Try to open the panel with Map MouseClick event, that way you will make your selection to the graphic then open the panel.

Try to use the Map LostFocus event and add the same code on the MouseLeftButtonUp event to it. Because whats happened is the map lost the focus when the panel opened and the MouseLeftButtonUp will not be fired and the graphic will sticks to the mouse.

Try to make the panel floating so you can change its place over the map when you select the graphic so the panel not opened over the selected graphic or the mouse position.

Hope this helps, let me know how things goes with you.

Thanks,
Asser
0 Kudos