Patrick
November 22, 2016, 12:12am
1
Hi,
When the map is in trackmode to create a poly-line, there is a last segment which follows the mouse move. This is good.
However, when the mouse leave the map area, this last segment remain displayed at the last mouse coord.
I need to hide this last segment until the mouse comes back to the map.
I also need to remove this last segment is the user click on a button (eg: Apply)
Any option to proceed ?
any other idea ?
thank you
Patrick.
Ethan
November 22, 2016, 5:20am
2
Hi Patrick,
Are you using Desktop Edition?
I think you should want to add the mouseleave event for the map control.
Then handle the last feature in TrackOverlay.
Regards,
Don
Patrick
November 22, 2016, 8:41am
3
Hi Don,
yes, I’m using the desktop edition for this question.
ok to handle the mouseleave, but do you have a suggestion to handle the lastsegment ?
Thank’s
Patrick.
Ethan
November 23, 2016, 7:12am
4
Hi Patrick,
You can get the feature from TrackOverlay, it should be a line, I think you can directly remove its end vertex.
Regards,
Don
Patrick
November 23, 2016, 9:44am
5
Don,
no it does not work. The last vertex is the last clicked one;
I need to remove the segment between the last clicked vertex and the mouse.
Any suggestion is welcome.
Patrick.
Ethan
November 24, 2016, 1:42am
6
Hi Patrick,
The last segment looks hadn’t been removed should because you hadn’t update the track shape in track overlay.
If you complete the track, you can remove this feature and move the feature into your other layer.
Regards,
Don