CustomGeometrySourceOptions class final

The callbacks and options of a custom geometry source.

Zoom levels are whole numbers from 0 to 32.

See mln_custom_geometry_source_options in the C API reference.

Constructors

CustomGeometrySourceOptions({required CustomSourceFetchTileCallback fetchTile, CustomSourceCancelTileCallback? cancelTile, double? minZoom, double? maxZoom, double? tolerance, int? tileSize, int? buffer, bool? clip, bool? wrap})
const

Properties

buffer → int?
The width in pixels of the margin around a tile that holds geometry from beyond its edges. buffer times 8192 / tile_size must be at most 65535.
final
cancelTile → CustomSourceCancelTileCallback?
final
clip → bool?
Whether to cut geometry at the outer edge of a tile's margin.
final
fetchTile → CustomSourceFetchTileCallback
final
hashCode → int
The hash code for this object.
no setterinherited
maxZoom → double?
final
minZoom → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tileSize → int?
The width of a tile in pixels, a power of two no larger than 8192.
final
tolerance → double?
How far, in pixels, simplified geometry can stray from the original.
final
wrap → bool?
Whether to wrap geometry that crosses the antimeridian.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited