Hello,
I run into an issue with the introduced ‘Centerpoint’ and ‘CurrentScale’.
During loading of my application the ‘mapview_loaded’ function is executed.
At the end I have a function ‘ZoomNederland()’ which zooms in on my country, so the user starts with our country centered on the screen.
The function is:
Public Sub ZoomNederland()
Me.CenterPoint = New PointShape(600000, 6820000)
Me.CurrentScale = 2000000
Me.RefreshAsync()
End Sub
When the code is executed from mapview_loaded I see the aerial photo a split second and then the screen becomes blank. The center coördinates are way of from the coördinates of The Netherlands.
So you might think the centerpoint in the function is wrong, but when I execute the function from a button (top left in picture), the same function is called and the aerial photo is nicely centered.
What could cause this issue? Can some code after mapview_loaded change the centerpoint?
Regards,
Guido van den Boom