markerAnnotationWithHue static method

BitmapDescriptor markerAnnotationWithHue(
  1. double hue
)

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

Implementation

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