MapControlZoomToFit… methods calculate a wrong bounding rectangle based only on top-left angle coordinates of MapRectangle objects stored in vector layers. These methods do not consider rectangles' width and height.
The attached screenshot demonstrates this problem.
MapControl.ZoomToFit... methods incorrectly work for MapRectangles
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
- v14.2.11Download Official Update