Back to Devexpress

DxMapMarkerTooltip.Text Property

blazor-devexpress-dot-blazor-dot-dxmapmarkertooltip.md

latest1.8 KB
Original Source

DxMapMarkerTooltip.Text Property

Specifies the tooltip text.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue("")]
[Parameter]
public string Text { get; set; }

Property Value

TypeDefaultDescription
StringString.Empty

The tooltip text.

|

Remarks

Use the Text property to specify a text displayed in the marker tooltip.

razor
<DxMap Zoom="14" Provider="MapProvider.Azure" Width="950px" Height="400px" >
    <DxMapApiKeys Azure="@MapApiKeyProvider.GetAzureProviderKey()" />
    <DxMapMarkers>
        <DxMapMarker>
            <DxMapMarkerLocation GeoPosition="51.519852,-0.077593" />
            <DxMapMarkerTooltip Text="Spitalfields Market" Visible="true" />
        </DxMapMarker>
        <DxMapMarker>
            <DxMapMarkerLocation GeoPosition="51.514763,-0.080787" />
            <DxMapMarkerTooltip Text="The Gherkin" Visible="true" />
        </DxMapMarker>
        <DxMapMarker>
            <DxMapMarkerLocation GeoPosition="51.508029,-0.078674" />
            <DxMapMarkerTooltip Text="Tower of London" Visible="true" />
        </DxMapMarker> 
    </DxMapMarkers>
</DxMap>

Run Demo: Map Markers

See Also

DxMapMarkerTooltip Class

DxMapMarkerTooltip Members

DevExpress.Blazor Namespace