pixelBounds method
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,
);
}