Exemple #1
0
 public void Setup()
 {
     _vm = new BikeTouringGISMapViewModel(true);
     _vm.AddSymbol(GraphicType.GPXRoute, new SimpleLineSymbol());
     _vm.AddSymbol(GraphicType.GPXRouteEndLocation, new SimpleMarkerSymbol());
     _vm.AddSymbol(GraphicType.GPXRouteStartLocation, new SimpleMarkerSymbol());
     _vm.AddSymbol(GraphicType.PoILabelL, new TextSymbol());
     _vm.AddSymbol(GraphicType.PoILabelM, new TextSymbol());
     _vm.AddSymbol(GraphicType.PoILabelXL, new TextSymbol());
     _vm.AddSymbol(GraphicType.PointOfInterest, new SimpleMarkerSymbol());
     _vm.AddSymbol(GraphicType.SplitPoint, new SimpleMarkerSymbol());
     _vm.AddSymbol(GraphicType.SplitPointLabel, new TextSymbol());
     _vm.AddSymbol(GraphicType.SplitRoute, new SimpleLineSymbol());
 }
Exemple #2
0
 private void SetSymbology()
 {
     foreach (DictionaryEntry item in Resources)
     {
         GraphicType enumValue;
         EnumHelper.TryParseTextToEnumValue(item.Key.ToString(), out enumValue);
         if (enumValue != GraphicType.Unknown)
         {
             _vm.AddSymbol(enumValue, item.Value);
         }
     }
 }