Hello,
i try to use the MapItemsRequest with the MapPolyline and i have this issue: The calling thread must be STA, because many UI components require this.
public void MapItemsRequest(object sender, MapItemsRequestEventArgs eventArgs) { double minZoom = eventArgs.MinZoom; Location upperLeft = eventArgs.UpperLeft; Location lowerRight = eventArgs.LowerRight; if(minZoom == 10){ //GET INFORMATION FROM URL (DownloadString - JSON and parse information) var points = new LocationCollection(); foreach (var coord in feature["geometry"]["coordinates"]) { points.Add(new Location((double) coord[1], (double) coord[0])); } var _polyline = new MapPolyline { Points = points, Stroke = new SolidColorBrush(Colors.Brown), Name = "id" + feature["_id"], StrokeThickness = 3 }; FeaturesList.Add(_polyline); eventArgs.CompleteItemsRequest(_trackList); }