dargod
dargod

Reputation: 332

Draw route with Bing Maps on WP7

I am following (http://msdn.microsoft.com/en-us/library/ee681887.aspx) and I have three problems connected with assamblies I guess.

Microsoft.Phone.Controls.Maps.Location' does not contain a constructor that takes 2 arguments

in

routeLine.Locations.Add(new Location(p.Latitude, p.Longitude));

And two other simmilar.

Can't find the issue as I have added good references...

Upvotes: 0

Views: 863

Answers (1)

Igor Ralic
Igor Ralic

Reputation: 15006

You are using the wrong tutorial. On Windows Phone you should use GeoCoordinate class. It has a constructor that accepts 2 arguments.

Read more here.

To use Bing Maps and route on Windows Phone, find tutorial here.

Upvotes: 1

Related Questions