mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Add icons.
This commit is contained in:
parent
f8bb7e5273
commit
c9fe5e55b6
5 changed files with 294 additions and 306 deletions
11
.idea/Roentgen.iml
generated
11
.idea/Roentgen.iml
generated
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
<option name="PROJECT_TEST_RUNNER" value="pytest" />
|
||||
</component>
|
||||
</module>
|
|
@ -219,6 +219,8 @@ nodes:
|
|||
|
||||
# Leisure
|
||||
|
||||
- tags: {leisure: fishing}
|
||||
icon: [fishing]
|
||||
- tags: {leisure: playground}
|
||||
icon: [toy_horse]
|
||||
|
||||
|
@ -278,9 +280,9 @@ nodes:
|
|||
- tags: {building: garage}
|
||||
icon: [garages]
|
||||
- tags: {tourism: hotel}
|
||||
icon: [hotel]
|
||||
icon: [bed]
|
||||
- tags: {tourism: hostel}
|
||||
icon: [hostel]
|
||||
icon: [two_beds]
|
||||
- tags: {tourism: motel} # Tourism?
|
||||
icon: [motel]
|
||||
- tags: {amenity: clinic}
|
||||
|
@ -397,8 +399,6 @@ nodes:
|
|||
|
||||
# Additions for buildings
|
||||
|
||||
- tags: {building: "*", "roof:material": metal}
|
||||
add_icon: [metal_roof]
|
||||
- tags: {building: "*", "roof:shape": onion}
|
||||
add_icon: [onion_roof_shape]
|
||||
|
||||
|
|
531
icons/icons.svg
531
icons/icons.svg
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 530 KiB After Width: | Height: | Size: 524 KiB |
44
readme.md
44
readme.md
|
@ -3,20 +3,13 @@
|
|||
* set of icons,
|
||||
* and map styles.
|
||||
|
||||
[
|
||||
](https://travis-ci.org/enzet/Roentgen)
|
||||
[](https://travis-ci.org/enzet/Roentgen)
|
||||
|
||||
The idea behind Röntgen project is to have a possibility to *display any map
|
||||
feature* represented by OpenStreetMap data tags by means of colors, shapes, and
|
||||
icons.
|
||||
The idea behind Röntgen project is to have a possibility to *display any map feature* represented by OpenStreetMap data tags by means of colors, shapes, and icons.
|
||||
|
||||
Röntgen is primarily created for OpenStreetMap contributors. Suppose, you spent
|
||||
time adding colors for building walls, benches and shelters for bus stops but
|
||||
they are not represented on the standard tile layer. Röntgen helps to display
|
||||
all changes you made.
|
||||
Röntgen is primarily created for OpenStreetMap contributors. Suppose, you spent time adding colors for building walls, benches and shelters for bus stops but they are not represented on the standard tile layer. Röntgen helps to display all changes you made.
|
||||
|
||||
Nevertheless, Röntgen map generator can generate precise but messy maps for OSM
|
||||
contributors as well as pretty and clean maps for OSM users.
|
||||
Nevertheless, Röntgen map generator can generate precise but messy maps for OSM contributors as well as pretty and clean maps for OSM users.
|
||||
|
||||
Map features
|
||||
------------
|
||||
|
@ -35,25 +28,18 @@ Tree leaf types, leaf cycles, and genes.
|
|||
|
||||
### Viewpoint and camera direction ###
|
||||
|
||||
Visualize `direction` tag for `tourism=viewpoint` and `camera:direction` for
|
||||
`man_made=surveillance`.
|
||||
Visualize `direction` tag for `tourism=viewpoint` and `camera:direction` for `man_made=surveillance`.
|
||||
|
||||

|
||||
|
||||
Icon set
|
||||
--------
|
||||
|
||||
If tag is drawable it is displayed using icon combination and colors. All icons
|
||||
are under [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/) license. So,
|
||||
do whatever you want but give appropriate credit. Icon set is heavily inspired
|
||||
by [Osmic](https://github.com/gmgeo/osmic) icon set.
|
||||
If tag is drawable it is displayed using icon combination and colors. All icons are under [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/) license. So, do whatever you want but give appropriate credit. Icon set is heavily inspired by [Osmic](https://github.com/gmgeo/osmic) icon set.
|
||||
|
||||

|
||||
|
||||
Feel free to request new icons via issues for whatever you want to see on the
|
||||
map. No matter how frequently the tag is used in OpenStreetMap since final goal
|
||||
is to cover all tags. However, common used tags have priority, other things
|
||||
being equal.
|
||||
Feel free to request new icons via issues for whatever you want to see on the map. No matter how frequently the tag is used in OpenStreetMap since final goal is to cover all tags. However, common used tags have priority, other things being equal.
|
||||
|
||||
Draw icon grid: `python3 run.py grid`.
|
||||
|
||||
|
@ -94,11 +80,9 @@ Every way and node displayed with the random color picked for each author.
|
|||
Map generation
|
||||
--------------
|
||||
|
||||
**Requirements**: Python (at least 3.7) and Python libraries (see
|
||||
`requirements.txt`).
|
||||
**Requirements**: Python (at least 3.7) and Python libraries (see `requirements.txt`).
|
||||
|
||||
There are simple Python renderer that generates SVG map from OpenStreetMap data.
|
||||
You can run it using:
|
||||
There are simple Python renderer that generates SVG map from OpenStreetMap data. You can run it using:
|
||||
|
||||
```bash
|
||||
python3 run.py \
|
||||
|
@ -117,16 +101,12 @@ python3 run.py -b 2.284,48.86,2.29,48.865
|
|||
|
||||
#### Required ####
|
||||
|
||||
* `--boundary-box` or `-b`: boundary box to draw. Value:
|
||||
`<longitude 1>,<latitude 1>,<longitude 2>,<latitude 2>`. Use space before
|
||||
first `-` to escape negative values.
|
||||
* `--boundary-box` or `-b`: boundary box to draw. Value: `<longitude 1>,<latitude 1>,<longitude 2>,<latitude 2>`. Use space before first `-` to escape negative values.
|
||||
|
||||
#### Optional ####
|
||||
|
||||
* `--scale` or `-s`: OSM zoom level. See
|
||||
[OSM wiki](https://wiki.openstreetmap.org/wiki/Zoom_levels). Default is 18.
|
||||
* `--scale` or `-s`: OSM zoom level. See [OSM wiki](https://wiki.openstreetmap.org/wiki/Zoom_levels). Default is 18.
|
||||
* `-o`: path to output SVG file name. Default is <tt>map.svg</tt>.</td>
|
||||
* `-i`: path to input XML file name. If this argument is not set, XML file
|
||||
will be downloaded through OpenStreetMap API.
|
||||
* `-i`: path to input XML file name. If this argument is not set, XML file will be downloaded through OpenStreetMap API.
|
||||
|
||||
Check all arguments with `python3 run.py --help`.
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
edit engine/process.py
|
||||
vs engine/mapper.py
|
||||
tabe data/tags.yml
|
||||
vs engine/test.py
|
Loading…
Add table
Add a link
Reference in a new issue