|
40 | 40 | new AzureMapsControl.Components.Atlas.Position(11.581155, 48.141852), |
41 | 41 | new AzureMapsControl.Components.Atlas.Position(11.581990, 48.143534), |
42 | 42 | new AzureMapsControl.Components.Atlas.Position(11.583355, 48.143896), |
43 | | - new AzureMapsControl.Components.Atlas.Position(11.583662, 48.144258), |
| 43 | + new AzureMapsControl.Components.Atlas.Position(11.583662, 48.144258) |
| 44 | + }), |
| 45 | + new Dictionary<string, object>() |
| 46 | + { |
| 47 | + { "Color", "#00FF00" } |
| 48 | + })); |
| 49 | + await dataSource.AddAsync(new AzureMapsControl.Components.Atlas.Shape<AzureMapsControl.Components.Atlas.LineString>( |
| 50 | + new AzureMapsControl.Components.Atlas.LineString(new[] { |
44 | 51 | new AzureMapsControl.Components.Atlas.Position(11.585458, 48.145596), |
45 | 52 | new AzureMapsControl.Components.Atlas.Position(11.587910, 48.145779), |
46 | 53 | new AzureMapsControl.Components.Atlas.Position(11.589632, 48.146608), |
|
51 | 58 | new AzureMapsControl.Components.Atlas.Position(11.593594, 48.151084), |
52 | 59 | new AzureMapsControl.Components.Atlas.Position(11.594028, 48.151803), |
53 | 60 | new AzureMapsControl.Components.Atlas.Position(11.592281, 48.152074) |
54 | | - }))); |
| 61 | + }), |
| 62 | + new Dictionary<string, object>() |
| 63 | + { |
| 64 | + { "Color", "#FF0000" } |
| 65 | + })); |
55 | 66 |
|
56 | 67 | var layer = new AzureMapsControl.Components.Layers.LineLayer |
57 | 68 | { |
58 | | - Options = new Components.Layers.LineLayerOptions |
| 69 | + Options = new AzureMapsControl.Components.Layers.LineLayerOptions |
59 | 70 | { |
60 | 71 | Source = dataSourceId, |
61 | | - StrokeWidth = new Components.Atlas.ExpressionOrNumber(6), |
62 | | - StrokeGradient = new Components.Atlas.Expression( |
| 72 | + StrokeWidth = new AzureMapsControl.Components.Atlas.ExpressionOrNumber(6), |
| 73 | + StrokeColor = new AzureMapsControl.Components.Atlas.ExpressionOrString( |
63 | 74 | new AzureMapsControl.Components.Atlas.Expression[] |
64 | 75 | { |
65 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("interpolate"), |
66 | | - new Components.Atlas.Expression( |
67 | | - new AzureMapsControl.Components.Atlas.Expression[] |
68 | | - { |
69 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("linear") |
70 | | - }), |
71 | | - new Components.Atlas.Expression( |
72 | | - new AzureMapsControl.Components.Atlas.Expression[] |
73 | | - { |
74 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("line-progress") |
75 | | - }), |
76 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(0), |
77 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("blue"), |
78 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(0.1), |
79 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("royalBlue"), |
80 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(0.3), |
81 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("cyan"), |
82 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(0.5), |
83 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("lime"), |
84 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(0.7), |
85 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("yellow"), |
86 | | - new AzureMapsControl.Components.Atlas.ExpressionOrNumber(1), |
87 | | - new AzureMapsControl.Components.Atlas.ExpressionOrString("red"), |
| 76 | + new AzureMapsControl.Components.Atlas.ExpressionOrString("get"), |
| 77 | + new AzureMapsControl.Components.Atlas.ExpressionOrString("Color") |
88 | 78 | }) |
89 | 79 | } |
90 | 80 | }; |
|
0 commit comments