Select to view content in your preferred language

Using Bing Maps problem

1142
2
08-08-2010 11:09 PM
BrianBorg
Emerging Contributor
I want to use bong maps in the api. I have followed the online example but I am getting this error

TileLayer' was not found because 'clr-namespace:ESRI.ArcGIS.Client.Bing;assembly=ESRI.ArcGIS.Client.Bing' is an unknown namespace.

The dll is referenced correctly and the application does compile.
0 Kudos
2 Replies
AliMirzabeigi
Emerging Contributor
Which version of Silverlight and ESRI API you're using?
0 Kudos
BrianBorg
Emerging Contributor
I am using v2.0

To solve the problem I had to add this line

ESRI.ArcGIS.Client.Geometry.MapPoint webmercatorP = ESRI.ArcGIS.Client.Bing.Transform.GeographicToWebMercator(new ESRI.ArcGIS.Client.Geometry.MapPoint(0, 0));

But it doesn't make any sense. With this line the solution works fine
0 Kudos