Skip to main content
All docs
V24.2

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

TdxMapControlAzureMapImageryDataProvider.Language Property

Specifies the locale (culture) name used to download data from Azure GIS services.

#Declaration

Delphi
property Language: string read; write;

#Property Value

Type Description
string

The culture name that corresponds to the target written language and locale.

#Remarks

Use the Language property to display a localized map version.

Refer to the following topic for the full list of languages supported in Azure Maps services: Localization Support in Azure Maps.

#Code Example: Display a Localized Map Version

The following code example implements a procedure that accepts an Azure Maps account key, creates and configures a map tile layer, changes the map language to Greek, and loads data:

uses
  dxAzureMapImageryDataProvider;  // This unit declares TdxMapControlAzureMapImageryDataProvider
// ...

procedure TMyForm.AddLocalizedAzureMapLayer(const AAzureKey: string);
var
  ATileLayer: TdxMapImageTileLayer;
  AProvider: TdxMapControlAzureMapImageryDataProvider;
begin
  ATileLayer := dxMapControl1.Layers.Add(TdxMapImageTileLayer) as TdxMapImageTileLayer;
  ATileLayer.ProviderClass := TdxMapControlAzureMapImageryDataProvider;
  AProvider := ATileLayer.Provider as TdxMapControlAzureMapImageryDataProvider;
  AProvider.BeginUpdate;  // Initiates the following batch change
  try
    AProvider.AzureKey := AAzureKey;  // Assigns the Azure account key
    AProvider.Language := 'el-GR';  // Changes the map language to Greek
  finally
    AProvider.EndUpdate;  // Calls EndUpdate regardless of the batch operation's success
  end;
end;

VCL Map Control: A Localized Azure Maps Example

See Also