POST
|
Hi Michael, I am replying on behalf of Jeff Lafrenz. For our usage, we would be clustering Graphics or a Geodatabase. 1000 - 10,000 objects. When a user clicks on a cluster we'd expect an event with all of the objects in that cluster to be raised. For an initial release, we don't require any animation with interacting with a cluster. Daniel
... View more
06-01-2015
12:53 PM
|
1
|
1
|
1145
|
POST
|
My current workaround is to override the PreviewTouchDown event, determine if the touch point is on top of a MapOverlay. If it is, disable the map interaction. The UserControl that I created to put in the map overlay is "InfoWindow" protected override void OnPreviewTouchDown(TouchEventArgs e) { ToggleMapInteraction(e.TouchDevice.GetTouchPoint(this).Position); base.OnPreviewTouchDown(e); } public void ToggleMapInteraction(Point point) { MapView.InteractionOptions.IsEnabled = !point.IsOverInfoWindow(MapView); } /// <summary> /// walk up the visual tree to find object of type T, starting from initial object /// http://www.codeproject.com/Tips/75816/Walk-up-the-Visual-Tree /// </summary> public static T FindUpVisualTree<T>(this DependencyObject initial) where T : DependencyObject { DependencyObject current = initial; while (current != null && current.GetType() != typeof(T)) { current = VisualTreeHelper.GetParent(current); } return current as T; } public static bool IsOverInfoWindow(this Point point, Visual relativeTo) { return VisualTreeHelper.HitTest(relativeTo, point).VisualHit.FindUpVisualTree<InfoWindow>() != null ? true : false; }
... View more
05-22-2015
04:31 PM
|
1
|
1
|
324
|
POST
|
This issue is mostly an issue with touch. For example, if I click on a MapOverlay, it will not trigger a MapViewTap event. However, if I use touch, the MapViewTap event will trigger.
... View more
05-04-2015
05:20 PM
|
0
|
3
|
324
|
POST
|
Hello, I am working on upgrading a Windows Desktop touch application from the WPF 10.2.5 SDK to the .NET 10.2.5 SDK. The upgrade has gone mostly smooth, except for the transition between InfoWindow in WPF to MapOverlay in .NET. I am displaying a UserControl with some buttons and another MapView within a MapOverlay. I am also using the MapViewTap event to hide the MapOverlay if it's open. However, the problem is that the tap event (and some other events) on the MapView are triggered when tapping on the MapOverlay (and then closing it). Panning the MapView inside of the MapOverlay is a nightmare as well. This worked fine with InfoWindows on WPF SDK Is there anyway to make it so that all of the mouse and touch events are sent to the MapOverlay, and NOT the MapView when the events are ontop of the MapOverlay? Thanks.
... View more
05-04-2015
11:38 AM
|
0
|
4
|
3445
|
Title | Kudos | Posted |
---|---|---|
1 | 05-22-2015 04:31 PM | |
1 | 06-01-2015 12:53 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|