public object GetRouteStopMarker(MapMarkerSizes size, bool isSelected) { var key = string.Format( RouteStopMarkerImgFormatString, this.GetSizeKey(size), this.GetSelectedKey(isSelected)); return(this.GetImageFromCache(key)); }
private void OnZoomChanged(float zoom) { _markerSize = (MapMarkerSizes)_zoomToMarkerSizeConverter.Convert( zoom, typeof(MapMarkerSizes), null, CultureInfo.InvariantCulture); this.MapRouteStopsViewModel.MarkerSize = _markerSize; this.MapVehiclesViewModel.MarkerSize = _markerSize; }
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)); }
private char GetSizeKey(MapMarkerSizes size) { return(size.ToString().ToLower()[0]); }