mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
12 lines
9.3 KiB
HTML
12 lines
9.3 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Maplibre-rs"><title>maplibre - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../maplibre/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../maplibre/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate maplibre</a></h2><div class="sidebar-elems"><ul class="block"><li class="version">Version 0.1.0</li><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#macros">Macros</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">maplibre</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/maplibre/lib.rs.html#1-58">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="maplibre-rs"><a href="#maplibre-rs">Maplibre-rs</a></h2>
|
||
<p>A multi-platform library for rendering vector tile maps with WebGPU.</p>
|
||
<p>Maplibre-rs is a map renderer that can run natively on MacOS, Linux, Windows, Android, iOS and the web.
|
||
It takes advantage of Lyon to tessellate vector tiles and WebGPU to display them efficiently.
|
||
Maplibre-rs also has an headless mode (<em>work in progress</em>) that can generate raster images.</p>
|
||
<p>The official guide book can be found <a href="https://maplibre.org/maplibre-rs/docs/book/">here</a>.</p>
|
||
<h4 id="example"><a href="#example">Example</a></h4>
|
||
<p>To import maplibre-rs in your <code>Cargo.toml</code>:</p>
|
||
<div class="example-wrap"><pre class="language-toml"><code>maplibre = "0.0.2"
|
||
</code></pre></div></div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="benchmarking/index.html" title="mod maplibre::benchmarking">benchmarking</a></div><div class="desc docblock-short">Collection of utilities used to perform certain calculations more conveniently.</div></li><li><div class="item-name"><a class="mod" href="context/index.html" title="mod maplibre::context">context</a></div></li><li><div class="item-name"><a class="mod" href="coords/index.html" title="mod maplibre::coords">coords</a></div><div class="desc docblock-short">Provides utilities related to coordinates.</div></li><li><div class="item-name"><a class="mod" href="debug/index.html" title="mod maplibre::debug">debug</a></div></li><li><div class="item-name"><a class="mod" href="environment/index.html" title="mod maplibre::environment">environment</a></div></li><li><div class="item-name"><a class="mod" href="event_loop/index.html" title="mod maplibre::event_loop">event_loop</a></div></li><li><div class="item-name"><a class="mod" href="io/index.html" title="mod maplibre::io">io</a></div><div class="desc docblock-short">Handles IO related processing as well as multithreading.</div></li><li><div class="item-name"><a class="mod" href="kernel/index.html" title="mod maplibre::kernel">kernel</a></div></li><li><div class="item-name"><a class="mod" href="map/index.html" title="mod maplibre::map">map</a></div></li><li><div class="item-name"><a class="mod" href="platform/index.html" title="mod maplibre::platform">platform</a></div><div class="desc docblock-short">Handles platform specific code. Depending on the compilation target, different
|
||
parts of this module are used.</div></li><li><div class="item-name"><a class="mod" href="plugin/index.html" title="mod maplibre::plugin">plugin</a></div></li><li><div class="item-name"><a class="mod" href="raster/index.html" title="mod maplibre::raster">raster</a></div></li><li><div class="item-name"><a class="mod" href="render/index.html" title="mod maplibre::render">render</a></div><div class="desc docblock-short">This module implements the rendering algorithm of maplibre-rs. It manages the whole
|
||
communication with the GPU.</div></li><li><div class="item-name"><a class="mod" href="schedule/index.html" title="mod maplibre::schedule">schedule</a></div></li><li><div class="item-name"><a class="mod" href="style/index.html" title="mod maplibre::style">style</a></div><div class="desc docblock-short">Vector tile format styling.</div></li><li><div class="item-name"><a class="mod" href="tcs/index.html" title="mod maplibre::tcs">tcs</a></div></li><li><div class="item-name"><a class="mod" href="tessellation/index.html" title="mod maplibre::tessellation">tessellation</a><span title="Restricted Visibility"> 🔒</span> </div><div class="desc docblock-short">Tessellation for lines and polygons is implemented here.</div></li><li><div class="item-name"><a class="mod" href="tile/index.html" title="mod maplibre::tile">tile</a></div><div class="desc docblock-short">Nested message and enum types in <code>Tile</code>.</div></li><li><div class="item-name"><a class="mod" href="util/index.html" title="mod maplibre::util">util</a></div><div class="desc docblock-short">Utils which are used internally</div></li><li><div class="item-name"><a class="mod" href="vector/index.html" title="mod maplibre::vector">vector</a></div></li><li><div class="item-name"><a class="mod" href="window/index.html" title="mod maplibre::window">window</a></div><div class="desc docblock-short">Utilities for the window system.</div></li></ul><h2 id="macros" class="small-section-header"><a href="#macros">Macros</a></h2><ul class="item-table"><li><div class="item-name"><a class="macro" href="macro.define_label.html" title="macro maplibre::define_label">define_label</a></div><div class="desc docblock-short">Macro to define a new label trait</div></li><li><div class="item-name"><a class="macro" href="macro.multi_stage.html" title="macro maplibre::multi_stage">multi_stage</a></div></li></ul></section></div></main></body></html> |