Hi
I try to use the event TrackOverlay.VertexAdded
I use
androidMap.TrackOverlay.TrackMode = TrackMode.Line;
and when I touch the map the fist time, the event is trigger 3 times and after for each touch 2 times.
Is it normal ?
Thanks
Laurent M
Event TrackOverlay.VertexAdded
Hi Laurent,
It should be a bug, in fact each touch will fire twice event, our developer think we cannot fixed quickly, so please try this workaround as below:
1. Add logic to compare the coordinates, if they are the same, just ignore this fire.
2. Set a flag, directly ignore the duplication fire.
Wish that’s helpful.
Regards,
Don
Hi Don
If I make another TrackInteractiveOverlay and the events.
overlayMesure = new TrackInteractiveOverlay();
overlayMesure.VertexAdded += fTracerApresAjoutVertex;
overlayMesure.TrackEnded += fTracerMesure;
androidMap.InteractiveOverlays.Add(overlayMesure);
The events are correct.
Thanks
Laurent M
Hi Maumet,
Thanks for your information.
It is very helpful for us to figure out this bug.
We test vertexAdd event with new TrackInteractiveOverlay. This event only fired once. You can use this workaround way until we fix the bug in map’s TrackOverlay.
Thanks