public static UIImage GetImage(AddressAnnotationType addressType, string vehicleTypeLogoName = null, bool showOrientation = false, double degrees = 0) { const string defaultIconName = "taxi"; switch (addressType) { case AddressAnnotationType.Destination: return(UseThemeColorForIcons ? ImageHelper.ApplyThemeColorToMapIcon("destination_icon.png", true) : ImageHelper.ApplyColorToMapIcon("destination_icon.png", Red, true)); case AddressAnnotationType.Taxi: if (showOrientation) { return(ImageHelper.ImageToOrientedMapIcon("nearby_oriented_passenger.png", degrees, false)); } return(ImageHelper.ApplyThemeColorToMapIcon("taxi_icon.png", true)); case AddressAnnotationType.NearbyTaxi: if (showOrientation) { return(ImageHelper.ImageToOrientedMapIcon("nearby_oriented_available.png", degrees, false)); } return(ImageHelper.ApplyThemeColorToMapIcon(string.Format("nearby_{0}.png", vehicleTypeLogoName ?? defaultIconName), false)); case AddressAnnotationType.NearbyTaxiCluster: return(ImageHelper.ApplyThemeColorToMapIcon(string.Format("cluster_{0}.png", vehicleTypeLogoName ?? defaultIconName), false)); default: return(UseThemeColorForIcons ? ImageHelper.ApplyThemeColorToMapIcon("hail_icon.png", true) : ImageHelper.ApplyColorToMapIcon("hail_icon.png", Green, true)); } }