extendMargin property

double extendMargin
final

Margin factor to extend the visible bounding box for marker queries.

This creates a buffer zone around the visible screen area to reduce the frequency of datastore queries during map navigation. The value represents a multiplication factor:

  • 1.0: No extension (query exact visible area)
  • 1.2: Extend by 20% in all directions (recommended minimum)
  • 1.5: Extend by 50% in all directions (good balance)
  • 2.0: Double the query area (maximum recommended)

Performance Impact:

  • Lower values: More frequent queries, less memory usage
  • Higher values: Fewer queries, more memory usage

Constraints: Must be >= 1.0

Implementation

final double extendMargin;