shouldPaint method

  1. @override
bool shouldPaint(
  1. BoundingBox boundary,
  2. int zoomlevel
)
inherited

returns true if the marker should be painted. The boundary represents the currently visible area

Implementation

@override
bool shouldPaint(BoundingBox boundary, int zoomlevel) {
  if (!zoomlevelRange.isWithin(zoomlevel)) return false;
  return boundary.contains(latLong.latitude, latLong.longitude);
}