windows phone 7 - Push Pin not locating in bing maps -


the push pin tool not finding location when provide value manually (latitude , longitude).

here code:

double dbllat = 13.060407;  double dbllong = 80.249562;  pushpin mypin = new pushpin();  watcher = new geocoordinatewatcher(geopositionaccuracy.high);              watcher.movementthreshold = 40;              watcher.start();              watcher.position.location.latitude = dbllat;              watcher.position.location.longitude = dbllong;              mypin .location.latitude = dbllat;              mypin .location.longitude = dbllong;              //credentialsprovider cp=              map1.center = new geocoordinate(mypin.location.latitude, mypin.location.longitude);             map1.setview(mypin .location, 5.0);             push.tag = "location";             push.content = "i'm here";             map1.children.add(mypin);             watcher.stop(); 

what doing wrong?

if thats error:

one or more waypoints can't routed because far roads.

try

geocoordinate loc = new geocoordinate(dbllat, dbllong); mypin.location = loc; 

instead of

mypin .location.latitude = dbllat; mypin .location.longitude = dbllong; 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -