ViewRect: IGxRectF;
The ViewRect property determines a map view area.
Executing the example requires a form with the Button1 button, the MapBox component and the UiMap component that is a data source for MapBox.
The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Map: IMap;
MapView: IMapView;
RectF: IGxRectF;
Begin
Map := UiMap1.Map;
MapView := Map.View;
RectF := New GxRectF.Create(0.5, 0.5, 1.5, 1.5);
MapView.ViewRect := RectF;
End Sub Button1OnClick;
After executing the example the visibility area is determined for the map.
See also: