MapRectangle Class
The class used to draw a rectangle on a map.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v19.1.dll
Declaration
public class MapRectangle :
MapShape,
IRectangleCore,
ISupportRectangle,
ISupportCoordLocation,
IPolygonCore,
IPointContainerCore,
ISupportCoordPoints
Related API Members
The following members return MapRectangle objects:
Remarks
The following image shows an example of a map rectangle shape.
Note
The MapRectangle.Width and MapRectangle.Height properties are measured in kilometers by default.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-add-different-types-of-vector-items-to-a-vector-layer-t145602.
<dxm:MapRectangle Location="60, 80" Width="2000" Height="1000"/>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MapRectangle class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.