Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomMapControl.OnCenterPointChanging Event

In This Article

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

#Declaration

Delphi
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