internal void SetSymbolsAndSplitLayerDefaultProperties(Dictionary <GraphicType, object> symbols) { _symbols = symbols; SetSymbols(); if (Type == LayerType.GPXRoute) { SplitLayer = new BikeTouringGISLayer() { Type = LayerType.SplitRoutes, IsVisible = false, ShowLegend = false, SelectionColor = Colors.LimeGreen }; SplitLayer.Labeling.IsEnabled = true; SplitLayer.Labeling.LabelClasses.Add(new AttributeLabelClass() { Symbol = (TextSymbol)_symbols[GraphicType.SplitPointLabel], TextExpression = "[distance]" }); } if (Type == LayerType.PointsOfInterest) { Labeling.IsEnabled = true; Labeling.LabelClasses.Add(new AttributeLabelClass() { Symbol = (TextSymbol)_symbols[GraphicType.PoILabelXL], TextExpression = "[name]", MinScale = 49999 }); Labeling.LabelClasses.Add(new AttributeLabelClass() { Symbol = (TextSymbol)_symbols[GraphicType.PoILabelL], TextExpression = "[name]", MaxScale = 50000, MinScale = 99999 }); Labeling.LabelClasses.Add(new AttributeLabelClass() { Symbol = (TextSymbol)_symbols[GraphicType.PoILabelM], TextExpression = "[name]", MaxScale = 100000 }); } }
public BikeTouringGISLayer(string name) : this() { FileName = name; DisplayName = name; Title = name; Type = LayerType.PointsOfInterest; SplitLayer = new BikeTouringGISLayer() { ShowLegend = false, Type = LayerType.SplitRoutes, SelectionColor = Colors.LimeGreen }; }