protected EnhancedMapPolyline createPolyLine(IGeometry lineString, MapLayerBase layer) { var line = new EnhancedMapPolyline { Locations = CoordinateConvertor.CoordinatesToLocationCollection(lineString.Coordinates), GeometryStyle = StyleSpecification, Visibility = Visibility }; layer.AddChild(line, CoordinateConvertor.ConvertBack(lineString.Centroid.Coordinate)); mapObjects.Add(line); return(line); }
protected EnhancedMapPolyline createPolyLine(IGeometry lineString, MapLayerBase layer) { var line = new EnhancedMapPolyline { Locations = CoordinateConvertor.CoordinatesToLocationCollection(lineString.Coordinates), GeometryStyle = StyleSpecification, Visibility = Visibility }; layer.AddChild(line, CoordinateConvertor.ConvertBack(lineString.Centroid.Coordinate)); mapObjects.Add(line); return line; }