pixelBounds method

Rect pixelBounds(
  1. MapCamera cam, {
  2. MarkerLayerOptions? options,
  3. bool? active,
})

Implementation

Rect pixelBounds(MapCamera cam, {MarkerLayerOptions? options, bool? active}) {
  final px = cam.latLngToScreenOffset(point);
  final align = alignment ?? options?.alignment ?? Alignment.center;
  final size =
      resolveSize(options: options, active: active ?? false, touch: true);
  final rot = rotate ?? options?.rotate ?? false;

  return overlayRect(
    origin: px,
    size: size,
    alignment: align,
    mapRotationRad: cam.rotationRad,
    rotate: rot,
  );
}