ThinkGeo Team,
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}
PointWorld = MapView.ToWorldCoordinate(MapMouseDownPoint);
PointWorld = {-9757415.837908994,5143153.17437942,0}
Next time after map start–>>
MapMouseDownPoint = {1283,522}
PointWorld = MapView.ToWorldCoordinate(MapMouseDownPoint);
PointWorld = {-9758260.152503068,5143177.348816365,0}
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.
Again, same code as in V10.6.
Regards,
Dennis