Module tile_view_pattern

Source
Expand description

Utility for generating a tile pattern which can be used for masking.

Modules§

pattern 🔒

Structs§

QueryHasTile
TileShape
Defines the exact location where a specific tile on the map is rendered. It defines the shape of the tile with its location for the current zoom factor.
TileViewPattern
The tile mask pattern assigns each tile a value which can be used for stencil testing.
ViewTile
Defines the target tile and its source from which data tile data comes.
ViewTileSources

Enums§

SourceShapes
This defines the source tile shaped from which the content for the target is taken. For example if the target is (0, 0, 1) (of ViewTile) , we might use SourceShapes::Parent((0, 0, 0)) as source. Similarly if we have the target (0, 0, 0) we might use SourceShapes::Children((0, 0, 1), (0, 1, 1), (1, 0, 1), (1, 1, 1)) as sources.

Constants§

DEFAULT_TILE_SIZE
If not otherwise specified, raster tiles usually are 512.0 by 512.0 pixel. In order to support 256.0 x 256.0 raster tiles 256.0 must be used.
DEFAULT_TILE_VIEW_PATTERN_SIZE

Traits§

HasTile

Type Aliases§

WgpuTileViewPattern