Product affected: MapXtreme .Net™
Operating System: Windows 7 64 bit
Product Version:7.1,7.2
Operating System: Windows 7 64 bit
Product Version:7.1,7.2
Issue
Points are not being displayed when they are being added via the AddPoint tool.
~~~~~~~~~~ Win 7 64 bit MXT 7.2 64 bit VS 2012 Questions ~~~~~~~~
Why aren't the points appearing? Are they missing a setting in their code?
~~~~~~~~~~ Win 7 64 bit MXT 7.2 64 bit VS 2012 Questions ~~~~~~~~
Why aren't the points appearing? Are they missing a setting in their code?
Cause
Mapcontrol not set for every mouse event.
Resolution
UPDATED: September 1, 2017Create a handler & function for refreshing the map at every mouse event.
Attached is sample code call mapcontrol.refreash() at every mouse event.
Attached is sample code call mapcontrol.refreash() at every mouse event.
===============================
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
AddHandler MapControl1.MouseMove, AddressOf HandleDrawBug
End Sub
==============================
Public bMouseIsDown As Boolean = False
==============================
Public Sub HandleDrawBug(ByVal sender As Object, ByVal e As MouseEventArgs)
'handles a bug that doesn't refresh the screen after a draw event
If e.Button = System.Windows.Forms.MouseButtons.Left Then
bMouseIsDown = True
Else
If bMouseIsDown Then
MapControl1.Refresh()
bMouseIsDown = False
End If
End If
End Sub
==============================
Also attached one video file for workaround for the issue.
Also attached one video file for workaround for the issue.