New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Server-side Programming

RadMap provides a set of server-side properties and events that can help you configure the look and behaviour of the control.

General RadMap Properties

Table 1 demonstrates some general properties of the RadMap:

PropertyDescription
CenterSettings - Inner properties: Latitude, LongitudeThe map center. Coordinates are listed as [Latitude, Longitude]. Inner properties - Gets or sets the Latitude of the map center; Gets or sets the Longitude of the map center.
ClientDataSourceIDGets or sets ID of ClientDataSource control that is used for client side binding.
ControlsSettingsThe configuration of built-in map controls.
DataSourceGets or sets the object from which the data-bound control retrieves its list of data items..
DataSourceIDGets or sets the ID of the control from which the data-bound control retrieves its list of data items.
LayerDefaultsSettingsThe default configuration for map layers by type.
LayersCollectionGets the layers collection.
LayersDataSourceGets or sets the object from which RadMap retrieves its layers.
LayersDataSourceIDGets or sets the ID of the control from which the map control retrieves its list of layers.
MarkerDefaultsSettingsThe default options for all markers.
MarkersCollectionGets the MapMarkersCollection with the static markers to be displayed on the map.
MaxZoomThe maximum zoom level. The default value is 19.
MinSizeThe size of the map in pixels at zoom level 0. The default value is 256.
MinZoomThe minimum zoom level. The default value is 1.
PannableControls whether the user can pan the map.
WraparoundSpecifies whether the map should wrap around the east-west edges.
ZoomGets or sets the initial zoom level.Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features). The map size is derived from the zoom level and minScale options: size = (2 ^ zoom) * minSize.
ZoomableControls whether the map zoom level can be changed by the user.

ControlsSettings Properties

For configuring the built-in RadMap controls through ControlsSettings, you can use the properties listed in Table 2:

RadMap.ControlsSettings PropertiesDescription
AttributionConfigures or disables the built-in attribution control.
AttributionSettings - Inner properties: PositionConfigures or disables the built-in attribution control. Inner properties - The position of the attribution control. Predefined values are "topLeft", "topRight", "left", "bottomRight", "bottomLeft".
NavigatorConfigures or disables the built-in navigator control.
NavigatorSettings - Inner properties: PositionConfigures or disables the built-in navigator control. Inner properties - The position of the navigator control. Predefined values are "topLeft", "topRight", "left", "bottomRight", "bottomLeft".
ZoomConfigures or disables the built-in zoom control (+/- button).
ZoomSettings - Inner properties: PositionConfigures or disables the built-in zoom control (+/- button). Inner properties - The position of the zoom control. Predefined values are "topLeft", "topRight", "left", "bottomRight", "bottomLeft".

RadMap Events

Table 3 lists common RadMap events to which you can subscribe.

EventDescription
DataBindingFired when the server control binds to a data source.
DataBoundFired after the server control binds to a data source.
ItemCreatedFired when item is created during data binding.
ItemDataBoundFired when item is data bound during data binding.

See Also