diff --git a/doc/grid.png b/doc/grid.png index ab31f88..270d94e 100644 Binary files a/doc/grid.png and b/doc/grid.png differ diff --git a/icons/config.json b/icons/config.json index 0cf4dc1..56f8ee3 100644 --- a/icons/config.json +++ b/icons/config.json @@ -337,6 +337,9 @@ "name": "Hi-Fi" }, "historic": {}, + "hopscotch": { + "name": "hopscotch" + }, "horizontal_bar": { "name": "high horizontal bar" }, diff --git a/icons/icons.svg b/icons/icons.svg index 1c806e7..fb45454 100644 --- a/icons/icons.svg +++ b/icons/icons.svg @@ -1,18 +1,19 @@ + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + sodipodi:docname="icons.svg" + inkscape:version="0.91 r13725" + version="1.1" + id="svg2987" + height="600px" + width="800px"> + + id="hopscotch" + inkscape:connector-curvature="0" + inkscape:label="#rect25259"> + hopscotch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/roentgen/__init__.py b/roentgen/__init__.py index 7842176..c633053 100644 --- a/roentgen/__init__.py +++ b/roentgen/__init__.py @@ -2,6 +2,11 @@ Röntgen project: simple Python map renderer for OpenStreetMap and icon set. """ +__project__ = "Röntgen" +__description__ = ( + "simple Python map renderer for OpenStreetMap with custom icon set " + "intended to display as many tags as possible" +) __url__ = "https://github.com/enzet/Roentgen" __author__ = "Sergey Vartanov" __email__ = "me@enzet.ru" diff --git a/roentgen/grid.py b/roentgen/grid.py index 3240e15..b8fffb0 100644 --- a/roentgen/grid.py +++ b/roentgen/grid.py @@ -1,7 +1,7 @@ """ Icon grid drawing. """ -from dataclasses import dataclass +from dataclasses import dataclass, field from pathlib import Path from typing import Dict, List, Optional, Set @@ -24,7 +24,7 @@ class IconCollection: """ icons: List[Icon] - selectors: Dict[str, Icon] + selectors: Dict[str, Icon] = field(default_factory=dict) @classmethod def from_scheme( diff --git a/scheme/default.yml b/scheme/default.yml index f90c180..e430176 100644 --- a/scheme/default.yml +++ b/scheme/default.yml @@ -788,6 +788,8 @@ node_icons: shapes: [horizontal_ladder] - tags: {fitness_station: push-up} shapes: [low_horizontal_bars] + - tags: {playground: hopscotch} + shapes: [hopscotch] - tags: {playground: slide} shapes: [slide] - tags: {playground: roundabout}