Skip to main content

TdxCustomMapControl.OnCenterPointChanging Event

Enables you to restrict end-user scrolling and keep the map centered on a specific point or area.

Declaration

property OnCenterPointChanging: TdxMapControlCenterPointChangingEvent read; write;

Remarks

Sender specifies the map control.

ANewCenterPoint specifies the geographical point to be assigned to the map control’s CenterPoint.GeoPoint property.

AAllow specifies whether the property value change is allowed. Set AAllow to False to prohibit this change. Otherwise, the OnCenterPointChanged event fires after the OnCenterPointChanging event in response to the change.

Handle the OnCenterPointChanging event in combination with the OnZoomLevelChanging event for complete control of a map viewport.

See Also