Maps for WinRT > How to Authenticate Bing Maps using C1Maps > Authenticate using C1Maps |
Once you have a key, you can authenticate usage of any of the provided Bing Maps tile sources (VirtualEarthRoadSurface, VirtualEarthAerialSurface, VirtualEarthHybridSurface) by passing your key into the constructor. For example:
C# |
Copy Code
|
---|---|
string credentialsProvider = "xxxxxxxxxxxxxxxxxxxxxxxxxxx"; C1MultiScaleTileSource tileSource = new VirtualEarthRoadSource(credentialsProvider); myMap.Source = tileSource |