Ejemplo n.º 1
0
        public object GetRouteStopMarker(MapMarkerSizes size, bool isSelected)
        {
            var key = string.Format(
                RouteStopMarkerImgFormatString,
                this.GetSizeKey(size),
                this.GetSelectedKey(isSelected));

            return(this.GetImageFromCache(key));
        }
Ejemplo n.º 2
0
 private void OnZoomChanged(float zoom)
 {
     _markerSize = (MapMarkerSizes)_zoomToMarkerSizeConverter.Convert(
         zoom,
         typeof(MapMarkerSizes),
         null,
         CultureInfo.InvariantCulture);
     this.MapRouteStopsViewModel.MarkerSize = _markerSize;
     this.MapVehiclesViewModel.MarkerSize   = _markerSize;
 }
Ejemplo n.º 3
0
        public object GetVehicleMarker(VehicleTypes type, MapMarkerSizes size, bool isSelected)
        {
            var key = string.Format(
                VehicleMarkerImgFormatString,
                type.ToString().ToLower(),
                this.GetSizeKey(size),
                this.GetSelectedKey(isSelected));

            return(this.GetImageFromCache(key));
        }
Ejemplo n.º 4
0
 private char GetSizeKey(MapMarkerSizes size)
 {
     return(size.ToString().ToLower()[0]);
 }