Hi,
I take the Dynamic Layer example and i try to replace the points by the polylines.
internal
List<PolylineData> GetFeatures(
double
upperLeftLat,
double
upperLeftLong,
double
lowerRightLat,
double
lowerRightLong,
GeomType storeType)
{
try
{
PolylineData polyline1 =
new
PolylineData()
{
ShapeFill =
new
MapShapeFill()
{
Stroke =
new
SolidColorBrush(Colors.Red),
StrokeThickness = 2
}
};
LocationCollection pt =
new
LocationCollection
{
new
Location(44.6957539183824, 23.3327663758679),
new
Location(44.1429369264591, 24.7498095849434),
new
Location(44.5131732087098, 27.4611884843576),
new
Location(45.2073941930888, 27.9275176988258)
};
polyline1.Points = pt;
_listPolylineDatas.Add(polyline1);
return
_listPolylineDatas;
But i have an exception : {"Must create DependencySource on same Thread as the DependencyObject."}
Do you have an solution for this issue ?
Thank you