Answer the question
In order to leave comments, you need to log in
How to fix glitch with adding markers to map in wp8?
I will try to explain and show the essence of the problem.
1. There is a map from the SDK from WP8.
2. You need to dynamically add markers (PushPin) to the map.
Solution:
At the time of receiving a response from the server, I add markers to the map:
MapLayer _allDriversLayer = new MapLayer();
{
...
foreach (var model in carsInfo.ToList())
{
var pushpin = new CarPushpin();
_allDriversLayer.Add(new MapOverlay
{
Content = pushpin, GeoCoordinate = model.GeoCoordinate, PositionOrigin = new Point(0.5, 1)
});
}
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question