Skip to main content
All docs
V25.1
  • TdxMapControlAzureMapImageryDataProvider.Language Property

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

    Declaration

    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;  // 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