Hi.
We want change finish event at trackoverlay.
If drawing trackmode, track ended event call is use mouse left doubleclick.
We want track ended event on mouse right click.
Please check this problem.
Thank you.
Hi.
We want change finish event at trackoverlay.
If drawing trackmode, track ended event call is use mouse left doubleclick.
We want track ended event on mouse right click.
Please check this problem.
Thank you.
Hi Binary,
For our latest version, you can use the event TrackEnded, when you right double click on map, this event also can be fired.
Regards,
Don
Hi Don,
Thank you for your replay.
But, we want use the event TrackEnded, when right single click on map.
Can I get the this sample code?
Please check problem.
Best regards.
Hi Binary,
It looks you want to use right click instead of left double click, as below is a simple sample to do that, when you right single click, it in fact call the double click on map. If it don’t suitable your scenario please let me know.
MyTrackInteractiveOverlay overlay = new MyTrackInteractiveOverlay();
overlay.TrackMode = TrackMode.Polygon;
map.InteractiveOverlays.Add(overlay);
public class MyTrackInteractiveOverlay : TrackInteractiveOverlay
{
protected override InteractiveResult MouseClickCore(InteractionArguments interactionArguments)
{
if (interactionArguments.MouseButton == MapMouseButton.Right && TrackMode == TrackMode.Polygon)
{
return MouseDoubleClick(interactionArguments);
}
else
{
return base.MouseClickCore(interactionArguments);
}
}
}
Regards,
Don