This commit is contained in:
marceloprates
2025-05-17 01:18:32 +00:00
parent 9b79e3eba0
commit 53d451d9ea
5 changed files with 5976 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -213,6 +213,19 @@
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Home
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="." class="md-nav__link md-nav__link--active">
@@ -225,6 +238,43 @@
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#features" class="md-nav__link">
<span class="md-ellipsis">
Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#quick-example" class="md-nav__link">
<span class="md-ellipsis">
Quick Example
</span>
</a>
</li>
</ul>
</nav>
</li>
@@ -293,6 +343,32 @@
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#features" class="md-nav__link">
<span class="md-ellipsis">
Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#quick-example" class="md-nav__link">
<span class="md-ellipsis">
Quick Example
</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
@@ -308,7 +384,23 @@
<h1 id="prettymaps-documentation">Prettymaps Documentation</h1>
<p>Welcome to the Prettymaps documentation site. </p>
<p>Welcome to the Prettymaps documentation site.</p>
<p>Prettymaps is a minimal Python library to draw beautiful maps from OpenStreetMap data.<br />
It allows you to easily generate artistic, customizable maps for any location in the world.</p>
<h2 id="features">Features</h2>
<ul>
<li>Fetches and visualizes OpenStreetMap data with minimal code</li>
<li>Highly customizable layers and styles</li>
<li>Supports elevation, hillshading, and keypoints</li>
<li>Preset system for reusable map styles</li>
<li>Export to PNG, SVG, and plotter-friendly formats</li>
</ul>
<h2 id="quick-example">Quick Example</h2>
<pre><code class="language-python">import prettymaps
prettymaps.plot(&quot;Porto Alegre, Brazil&quot;)
</code></pre>
<p>Explore the <a href="usage/">Usage</a> and <a href="api/">API Reference</a> for more details. </p>

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -237,6 +237,19 @@
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Usage
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
@@ -249,6 +262,70 @@
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#installation" class="md-nav__link">
<span class="md-ellipsis">
Installation
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#basic-usage" class="md-nav__link">
<span class="md-ellipsis">
Basic Usage
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#customizing-layers-and-styles" class="md-nav__link">
<span class="md-ellipsis">
Customizing Layers and Styles
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#saving-maps" class="md-nav__link">
<span class="md-ellipsis">
Saving Maps
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#advanced-features" class="md-nav__link">
<span class="md-ellipsis">
Advanced Features
</span>
</a>
</li>
</ul>
</nav>
</li>
@@ -295,6 +372,59 @@
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#installation" class="md-nav__link">
<span class="md-ellipsis">
Installation
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#basic-usage" class="md-nav__link">
<span class="md-ellipsis">
Basic Usage
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#customizing-layers-and-styles" class="md-nav__link">
<span class="md-ellipsis">
Customizing Layers and Styles
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#saving-maps" class="md-nav__link">
<span class="md-ellipsis">
Saving Maps
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#advanced-features" class="md-nav__link">
<span class="md-ellipsis">
Advanced Features
</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
@@ -310,8 +440,43 @@
<h1 id="usage">Usage</h1>
<p>This page will describe how to use Prettymaps.</p>
<p><em>More details coming soon!</em> </p>
<h2 id="installation">Installation</h2>
<p>Install Prettymaps and its dependencies:</p>
<pre><code class="language-sh">pip install prettymaps
</code></pre>
<h2 id="basic-usage">Basic Usage</h2>
<p>Generate a map for a location:</p>
<pre><code class="language-python">import prettymaps
prettymaps.plot(&quot;Paris, France&quot;)
</code></pre>
<h2 id="customizing-layers-and-styles">Customizing Layers and Styles</h2>
<p>You can customize which map layers to show and their appearance:</p>
<pre><code class="language-python">layers = {
&quot;perimeter&quot;: {},
&quot;streets&quot;: {&quot;width&quot;: 8},
&quot;buildings&quot;: {},
&quot;water&quot;: {},
}
style = {
&quot;perimeter&quot;: {&quot;fc&quot;: &quot;#f2efe9&quot;, &quot;ec&quot;: &quot;#333&quot;},
&quot;streets&quot;: {&quot;fc&quot;: &quot;#cccccc&quot;},
&quot;buildings&quot;: {&quot;fc&quot;: &quot;#b0b0b0&quot;},
&quot;water&quot;: {&quot;fc&quot;: &quot;#aadaff&quot;},
}
prettymaps.plot(&quot;Berlin, Germany&quot;, layers=layers, style=style)
</code></pre>
<h2 id="saving-maps">Saving Maps</h2>
<p>You can save the generated map to a file:</p>
<pre><code class="language-python">prettymaps.plot(&quot;Tokyo, Japan&quot;, save_as=&quot;tokyo_map.png&quot;)
</code></pre>
<h2 id="advanced-features">Advanced Features</h2>
<ul>
<li><strong>Keypoints:</strong> Highlight specific places or features on the map.</li>
<li><strong>Presets:</strong> Save and reuse your favorite map styles.</li>
<li><strong>Hillshade:</strong> Add elevation shading for a 3D effect.</li>
</ul>
<p>See the <a href="../api/">API Reference</a> for all available options. </p>