Back to Devexpress

DxMap.Width Property

blazor-devexpress-dot-blazor-dot-dxmap-2580b208.md

latest1.5 KB
Original Source

DxMap.Width Property

Specifies the component width.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string Width { get; set; }

Property Value

TypeDescription
String

The width in CSS units.

|

Remarks

Use the Height and Width properties to specify the size of the DxMap component.

razor
<DxMap Zoom="14"
       Provider="MapProvider.Azure"
       Width="100%"
       Height="600px" >
    <DxMapApiKeys Azure="@MapApiKeyProvider.GetAzureProviderKey()" />
    <DxMapCenter GeoPosition="40.7061, -73.9969" />
</DxMap>

Run Demo: Map - Overview

Note

The maximum size of Google Static Maps images is 640 x 640 pixels. For additional information, refer to the following article: Maps Static API Usage and Billing.

See Also

DxMap Class

DxMap Members

DevExpress.Blazor Namespace