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)); } }
public AddressAnnotation GetAnnotation(CLLocationCoordinate2D coordinates, AddressAnnotationType addressType, bool useThemeColorForPickupAndDestinationMapIcons) { return(new AddressAnnotation(coordinates, addressType, string.Empty, string.Empty, useThemeColorForPickupAndDestinationMapIcons, false)); }
public AddressAnnotation( CLLocationCoordinate2D coord, AddressAnnotationType type, string title, string subtitle, bool useThemeColorForIcons, bool showSubtitleOnPin, string vehicleTypeLogoName = null, string market = null, double degrees = double.NaN, bool showMedallionOnTap = false, bool showMedallionOnStart = false, bool showOrientation = false) { AddressType = type; _coordinate = coord; _title = title; _subtitle = subtitle; UseThemeColorForIcons = useThemeColorForIcons; ShowSubtitleOnPin = showSubtitleOnPin; _vehicleTypeLogoName = vehicleTypeLogoName; Market = market; }