Map.LandmarksEnabled Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether 3D buildings are displayed on the Map.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

Syntax

Public Property LandmarksEnabled As Boolean
public bool LandmarksEnabled { get; set; }

Property Value

Type: System..::.Boolean
true if 3D buildings are displayed on the Map; otherwise, false.

Remarks

3D buildings are visible on the map only when the ZoomLevel property is set to 16 or higher.

The following illustration displays a map with both 3D buildings and pedestrian features such as public stairs.

The following code example shows how to set the PedestrianFeaturesEnabled property and the LandmarksEnabled property.

<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <maps:Map Center="47.6097, -122.3331" ZoomLevel="16" LandmarksEnabled="true" PedestrianFeaturesEnabled="true"/>
        </Grid>

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Map Class

Microsoft.Phone.Maps.Controls Namespace

Other Resources

Maps and navigation for Windows Phone 8