inMapBounds method

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

Implementation

bool inMapBounds(MapCamera cam, {MarkerLayerOptions? options, bool? active}) {
  final bounds = pixelBounds(cam, options: options, active: active);
  final view = Offset.zero & cam.nonRotatedSize;
  return view.overlaps(bounds);
}