mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-17 12:07:47 +01:00
Compare commits
No commits in common. "7c099b8f66d3e82e554b9c5a4f95da1c488e8183" and "ba2fd6d2e2054ae4eb64d6a9c31fe6934c5b7611" have entirely different histories.
7c099b8f66
...
ba2fd6d2e2
@ -1006,7 +1006,7 @@
|
|||||||
<rule e="any" k="amenity" v="police" zoom-min="17">
|
<rule e="any" k="amenity" v="police" zoom-min="17">
|
||||||
<symbol src=":/mapsforge/symbols/amenity/police2.svg" />
|
<symbol src=":/mapsforge/symbols/amenity/police2.svg" />
|
||||||
</rule>
|
</rule>
|
||||||
<rule e="any" k="amenity|building" v="fire_station" zoom-min="17">
|
<rule e="any" k="amenity" v="fire_station" zoom-min="17">
|
||||||
<symbol src=":/mapsforge/symbols/amenity/firestation3.svg" />
|
<symbol src=":/mapsforge/symbols/amenity/firestation3.svg" />
|
||||||
</rule>
|
</rule>
|
||||||
</rule>
|
</rule>
|
||||||
|
@ -17,11 +17,6 @@ using namespace IMG;
|
|||||||
#define AREA(rect) \
|
#define AREA(rect) \
|
||||||
(rect.size().width() * rect.size().height())
|
(rect.size().width() * rect.size().height())
|
||||||
|
|
||||||
#define HIDPI_IMG(dir, basename, ratio) \
|
|
||||||
(((ratio) > 1.0) \
|
|
||||||
? QImage(dir "/" basename "@2x.png") \
|
|
||||||
: QImage(dir "/" basename ".png"))
|
|
||||||
|
|
||||||
#define ROAD 0
|
#define ROAD 0
|
||||||
#define WATER 1
|
#define WATER 1
|
||||||
|
|
||||||
@ -451,8 +446,10 @@ void RasterTile::render()
|
|||||||
QList<TextItem*> textItems;
|
QList<TextItem*> textItems;
|
||||||
QImage arrows[2];
|
QImage arrows[2];
|
||||||
|
|
||||||
arrows[ROAD] = HIDPI_IMG(":/map", "arrow", _ratio);
|
arrows[ROAD] = (_ratio > 1.0)
|
||||||
arrows[WATER] = HIDPI_IMG(":/map", "water-arrow", _ratio);
|
? QImage(":/map/arrow@2x.png") : QImage(":/map/arrow.png");
|
||||||
|
arrows[WATER] = (_ratio > 1.0)
|
||||||
|
? QImage(":/map/water-arrow@2x.png") : QImage(":/map/water-arrow.png");
|
||||||
|
|
||||||
fetchData(polygons, lines, points);
|
fetchData(polygons, lines, points);
|
||||||
ll2xy(polygons);
|
ll2xy(polygons);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user