Hello again,
I am having a problem with the highlight Click Event. I am using Google map, converting my latitudes/longitudes for projection, and creating shapes in the highlightoverlayer. At some point (a button click event) - I subscribe to the Highlight Click event
Map1.HighlightOverlay.Click += new EventHandler<HighlightFeatureOverlayClickEventArgs>(HighlightOverlay_Click);
(1) Everything works, but my panning of the map becomes glitchy. Randomly, I will pan the map and the HighlightOverlay.Click will fire.
(2) Also, I try to unsubscribe to the highlight click event and it will not work.
Map1.HighlightOverlay.Click -= new EventHandler<HighlightFeatureOverlayClickEventArgs>(HighlightOverlay_Click);
Map1.HighlightOverlay.Click -= HighlightOverlay_Click;
I have tried to unsubscribe using both of these techniques and nothing will work. What am I missing? Or is there any solution for any of these problems I am having?
Thanks in advance,
CF