defaultAnnotationWithHue static method

BitmapDescriptor defaultAnnotationWithHue(
  1. double hue
)

Creates a BitmapDescriptor that refers to a colorization of the default/Pin annotation image. For convenience, there is a predefined set of hue values. See e.g. hueCyan.

Implementation

static BitmapDescriptor defaultAnnotationWithHue(double hue) {
  assert(0.0 <= hue && hue < 360.0);
  double iosCompatibleHue = hue / 360.0;
  return BitmapDescriptor._(<dynamic>['defaultAnnotation', iosCompatibleHue]);
}