Expand description
The map engine: the renderer and its frames (render), sources
(source), tiles and their workers (tile_store, worker), layers’
layouts and buckets (layer), the symbol layer type (symbol),
placement, queries, and what draws them (draw).
Re-exports§
pub use render::events::FontStack;pub use render::events::GlyphRange;pub use render::events::RenderMode;pub use render::events::RendererEvent;pub use render::events::RendererEvents;pub use render::events::TileOperation;pub use render::update_slot::Update;pub use render::update_slot::UpdateReader;pub use render::update_slot::UpdateSlot;
Modules§
- camera
- The camera: its options, momentum and limits, bound options, the transform that moves it, the transform state, and the view it shows and draws with.
- exec
- Where the engine’s work runs: the thread pool and its task groups
(
pool), the run loop’s queue (queue), the queue that wakes a host’s loop (event_queue), named threads (thread) and what a panic on one of them reports (panic). - geo
- The map’s geometry: the camera’s screen coordinates, edge insets and
orientation; spherical Mercator (
projection); the camera’s frustum and the bounding volumes it culls (bounding_volumes); intersection tests, point math, and the Earth’s size (constants). - gestures
- A gesture recognizer that every host shares: pointer, touch, platform
pinch and other camera input turned into camera moves on a
GestureCamera, such asmln_runtime::Map, through the map’s camera calls with their gesture phases (Map::apply_camera_delta), and releases continued with the map’s momentum. Hosts translate each platform event into anInput: which buttons and keys select whichModes, and how far a wheel, a dial or a key moves the camera. The recognizer interprets them over time, and reports what gestures mean beyond camera moves asGestureEvents: taps, which hosts answer, and the notches where hosts play haptic feedback.GestureOptionssets, for each part of the camera, whether gestures move it, how its release glides, where it settles, and where it has notches. - image
- Images: the codecs, ports of those
include/mln/util/image.hppdeclares (decodeImage,encodePNG), fromplatform/default/src/mln/util/{image,jpeg_reader,png_reader,png_writer}.cpp. - layer
- The render half of the layer types: how a tile lays out a layer’s features into buckets, what its paint properties bind, and what a layer keeps and draws each frame.
- map
- The map:
Map, its options, its snapshots, its style’s loading and feature state, and the events it reports. Its camera is incamera. - offline
- Offline regions:
OfflineDownload, which downloads an offline region’s resources into theOfflineDatabase,Downloads, which keeps a database’s downloads beside it on the database’s worker, and the offline region API of that database (RegionDatabase). - placement
- Symbol placement: which of the frame’s symbols show, each where it collides with none placed before it, and how they fade between placements.
- query
- render
- The renderer and each frame: its update, its passes and targets, and what the frame draws beyond the layers (clip masks, sky, light, the globe and terrain).
- source
- The render half of the source types, and the state of each source’s tiles.
- storage
- Resource loading:
Resource,Response, theFileSourcetrait, theLoaderover the built-in file sources (assets, local files, MBTiles, PMTiles, the cache database and the network),OfflineDatabaseand the offline region definitions.OfflineDownloadis inoffline. - text
- Text shaping and glyphs.
- tile
- Tiles’ ids and data: unwrapped and overscaled tile ids around
mln_style::tile_id’s canonical one, and tile ranges (tile_id,tile_range); the layers and features of vector tiles, and the geometry functions that work on them; and DEM data (dem_data). - tile_
store - The tiles and their store: which tiles each source covers, where their data comes from, and how it becomes what they draw.
- worker
- The tiles’ jobs and the workers they run on.
Structs§
- Custom
- The
customlayer type, whose layers aCustomLayerHostdraws. - Custom
Host - The host of a custom layer, as its style data refers to it: there while the style has the layer or a renderer draws it.
- Custom
Layer Frame - The frame that a custom layer draws into.
- Custom
Layer Prerender Parameters - What
CustomLayerHost::prerendergets. - Custom
Layer Render Parameters - What
CustomLayerHost::rendergets. - Drawn
Frame - A frame that
Renderer::renderdrew, forRenderer::finish_frameonce the target handed it off. - Registry
- The expression functions, layer types and source types that a style
parses against, its renderer draws and its tile workers lay out, built by
a
RegistryBuilder. It doesn’t change once built. - Registry
Builder - What a
Registryis built from. - Render
Timings - What the last frame that
Renderer::renderdrew spent on each of its steps, on the CPU, from its update on. They follow each other, and together take nearly all ofupdateandrender. - Renderer
- Draws a map’s updates into the frames of one backend’s
Gpu: it keeps the map’s sources, tiles and layers between frames, and the GPU objects they draw with. - Rendering
Stats - Counters of the rendering backend. The
num_*andmem_*counters of buffers, textures and frame buffers count the live resources;total_*,*_updatesand*_bytesgrow over the context’s life. - Update
Parameters - Updated
Frame - A frame that
Renderer::updatebrought the renderer’s state to, forRenderer::renderto draw.
Enums§
- Render
Mode - Renderer
Event - An event of a renderer.
- Tile
Operation
Traits§
- Custom
Layer Host - Draws a custom layer with the host’s own GPU commands, on the thread that renders the map.
Functions§
- register_
builtins - Adds the style specification’s expression functions, layer types and source types, the custom layer type and the custom source types. Fails for a name that an earlier call took, or a role that an earlier function has.
Type Aliases§
- Renderer
Events - The queue a renderer pushes its events to.