Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Nov 15, 2024
1 parent de9529e commit b7f023a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions data/style/style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<line stroke="#9fc4e1" stroke-width="1.2"/>
<pathText fill="#9fc4e1" font-size="12" font-family="serif" font-style="italic" k="name" stroke="#FFFFFF" stroke-width="1"/>
<rule e="way" k="*" v="*" zoom-min="12">
<lineSymbol src=":/symbols/water-arrow.svg" symbol-width="16" symbol-height="8"/>
<lineSymbol src=":/symbols/flow.svg" symbol-width="16" symbol-height="8"/>
</rule>
</rule>
<rule e="way" k="waterway" v="stream|drain|ditch">
Expand All @@ -106,7 +106,7 @@
<line stroke="#9fc4e1" stroke-width="0.6"/>
<pathText fill="#9fc4e1" font-size="10" font-family="serif" font-style="italic" k="name" stroke="#FFFFFF" stroke-width="1"/>
<rule e="way" k="name" v="*">
<lineSymbol src=":/symbols/water-arrow.svg" symbol-width="16" symbol-height="8"/>
<lineSymbol src=":/symbols/flow.svg" symbol-width="16" symbol-height="8"/>
</rule>
</rule>
</rule>
Expand Down Expand Up @@ -293,7 +293,7 @@
<rule e="way" k="*" v="*" zoom-min="15">
<pathText fill="#000000" font-size="10" k="name" priority="-7" stroke="#FFFFFF" stroke-width="1"/>
<rule e="way" k="oneway" v="yes|true|1" zoom-min="16">
<lineSymbol priority="-50" src=":/symbols/arrow.svg" symbol-width="16" symbol-height="8"/>
<lineSymbol priority="-50" src=":/symbols/oneway.svg" symbol-width="16" symbol-height="8"/>
</rule>
</rule>
</rule>
Expand Down
4 changes: 2 additions & 2 deletions gpxsee.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<!-- Common map stuff -->
<qresource prefix="/symbols">
<file alias="arrow.svg">icons/map/symbols/arrow.svg</file>
<file alias="cliff.svg">icons/map/symbols/cliff.svg</file>
<file alias="exit.svg">icons/map/symbols/exit.svg</file>
<file alias="water-arrow.svg">icons/map/symbols/water-arrow.svg</file>
<file alias="flow.svg">icons/map/symbols/flow.svg</file>
<file alias="oneway.svg">icons/map/symbols/oneway.svg</file>
</qresource>

<!-- POIs (IMG, Mapsforge & ENC style) -->
Expand Down
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions src/map/IMG/rastertile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ void RasterTile::render()
QList<TextItem*> textItems;
QImage arrows[2];

arrows[ROAD] = Util::svg2img(":/symbols/arrow.svg", _ratio);
arrows[WATER] = Util::svg2img(":/symbols/water-arrow.svg", _ratio);
arrows[ROAD] = Util::svg2img(":/symbols/oneway.svg", _ratio);
arrows[WATER] = Util::svg2img(":/symbols/flow.svg", _ratio);

fetchData(polygons, lines, points);
ll2xy(polygons);
Expand Down

0 comments on commit b7f023a

Please sign in to comment.