I’m noticing that MapView.ToWorldCoordinate returns an invalid PointShape X/Y the very first time that this method is invoked after the application is started. After the first time this method works just fine.
These are the basic instructions:
First time after map start–>>
MapMouseDownPoint = {1283,522}
It is the Y coordinate that is not correct. The X coordinate is fine.
Another odd behavior, and again only first time after the application is started, has to do with what happens upon resizing the application and hence MapView. If the first thing after restarting the application is to resize the application the map extent is wildly changed. Once either of these ‘first time’ things are done ToWorldCoordinate and resizing work fine.
The ToWorldCoordinate is depend on the current extent and map size etc.The very beginning the current extent may be some old value. So if you hookup the get current world coordinate to the mouse move event. After you zoom in/out the first few results may still based on the old extent. but soon it will get the new value base on the new extent.
Thanks Dennis,
Yes. We have fixed this one. CurrentExtent get change right before the CurrentExtentChanged trigger. You can try with latest V12 nugget package.
Thanks Dennis,
I attached you a demo project. You will find when the application start I console the PointWorld. After the application load complete I have a button to get the PointWorld. The results are the same. Could you modify my demo project to reproduce the issue you mention in this Post. Could you also reproduce this issue V12.1 - ZoomLevel Change Results in Pink Tiles on the demo project. I already got the sqlite file you sent to us.
I’m not yet able to recreate this in a test application. Your demo application is really oversimplified and certainly would not reproduce this issue. My application encounters this under the MapView.MouseUp event.
I’ll continue to investigate, but once again this is all same code as under V10.6.
My application does have reprojection for all the layers so I’m thinking it might be where the issue is. My test application does not make use of ProjectionConverter at this point and so I am going to add that to the code.
I believe you misunderstood my last post when I stated:
“I had set breakpoints in my code on the TrackingOverlay Events and none were hit.”
I was not trying to tell you that TrackingOverlay breakpoints were not working.
What I was trying to say was that when this issue occurs my application does not get any Tracking Overlay breakpoints. Which is to say that since my application did not get any breakpoints it is not executing any code that could cause this behavior. Which does mean that the SDK for some reason is doing this Pan and ZoomIn.
Under normal operation TrackingOverlay breakpoints are received and the application code executes properly.
As far as fonts are concerned…are you saying that fonts under V10.6 were actually incorrect and they have been corrected under V12.1? You state that V12.1 is using a different standard. I always thought a font was a font. The issue for me, and I’m sure everyone else, is that now I have to go and change all of my font definitions. I have nearly 90 layers so this is going to take quite a bit of time.
Thanks Dennis,
A quick update. For the first issue. I am still trying to re-produce it. For the font size. I am discussing with the developer team. I will let you know once we have an solution.
Dennis,
We have done some enhancement for the multiple threading. Could you try the latest beta version see if this fix the issue. For the font size. it is breaking changes. You may need adjust the code to enlarge the font size a little to keep them consistent with V10.
I’ve resolved the issue centered around MapView.ToWorldCoordinate.
The code was passing MapView.CurrentExtent to a method, which in turn modified said parameter, which had the effect of modifying MapView.CurrentExtent.
To resolve this a CloneDeep was incorporated as MapView.CurrentExtent.CloneDeep().
What’s odd is this was not an issue under V10.6.
Apologies for having troubled you with this issue.