Click or drag to resize

BingExtensionsAddBingLayer Method (WpfMap, String, Int32, String, BingImagerySet, BingMapVersion, Boolean, Double, BitmapImage)

Extension method which adds a Microsoft Bing layer to the map.

Namespace:  Ptv.XServer.Controls.Map.TileProviders
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static void AddBingLayer(
	this WpfMap wpfMap,
	string name,
	int idx,
	string bingKey,
	BingImagerySet set,
	BingMapVersion version,
	bool isBaseMapLayer,
	double opacity,
	BitmapImage icon
)

Parameters

wpfMap
Type: Ptv.XServer.Controls.MapWpfMap
The map to add the layer to.
name
Type: SystemString
The name of the layer.
idx
Type: SystemInt32
The index of the layer in the layer hierarchy.
bingKey
Type: SystemString
The Microsoft Bing key to use.
set
Type: Ptv.XServer.Controls.Map.TileProvidersBingImagerySet
The imagery set to be used.
version
Type: Ptv.XServer.Controls.Map.TileProvidersBingMapVersion
The Microsoft Bing version.
isBaseMapLayer
Type: SystemBoolean
Specifies if the added layer should act as a base layer.
opacity
Type: SystemDouble
The initial opacity of the layer.
icon
Type: System.Windows.Media.ImagingBitmapImage
The icon of the layer used within the layer gadget.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WpfMap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also