1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-23 19:25:54 +01:00

Compare commits

...

7 Commits

8 changed files with 55 additions and 22 deletions

View File

@ -1,4 +1,4 @@
version: 13.31.{build} version: 13.32.{build}
configuration: configuration:
- Release - Release

View File

@ -466,7 +466,7 @@
<line stroke="#ffffff" stroke-width="0.4608" stroke-dasharray="2,2" stroke-linecap="butt" scale="all"/> <line stroke="#ffffff" stroke-width="0.4608" stroke-dasharray="2,2" stroke-linecap="butt" scale="all"/>
</rule> </rule>
</rule> </rule>
<rule e="way" k="railway" v="narrow_gauge|light_rail|funicular" zoom-min="15"> <rule e="way" k="railway" v="narrow_gauge|light_rail|funicular" zoom-min="14">
<line stroke="#414141" stroke-width="0.2" stroke-linecap="butt"/> <line stroke="#414141" stroke-width="0.2" stroke-linecap="butt"/>
</rule> </rule>
<rule e="way" k="railway" v="tram" zoom-min="15"> <rule e="way" k="railway" v="tram" zoom-min="15">
@ -488,7 +488,7 @@
<line stroke="#878787" stroke-width="0.4144" stroke-linecap="butt" stroke-dasharray="2,1" scale="all"/> <line stroke="#878787" stroke-width="0.4144" stroke-linecap="butt" stroke-dasharray="2,1" scale="all"/>
</rule> </rule>
</rule> </rule>
<rule e="way" k="railway" v="narrow_gauge|light_rail|funicular" zoom-min="15"> <rule e="way" k="railway" v="narrow_gauge|light_rail|funicular" zoom-min="14">
<line stroke="#414141" stroke-width="0.2" stroke-linecap="butt" stroke-dasharray="12,4"/> <line stroke="#414141" stroke-width="0.2" stroke-linecap="butt" stroke-dasharray="12,4"/>
</rule> </rule>
<rule e="way" k="railway" v="tram" zoom-min="15"> <rule e="way" k="railway" v="tram" zoom-min="15">
@ -533,27 +533,45 @@
</rule> </rule>
</rule> </rule>
<!-- Town & vilage names --> <!-- Town & village names -->
<rule e="node" k="place" v="locality|isolated_dwelling|farm" zoom-min="14"> <rule e="node" k="place" v="locality|isolated_dwelling|farm" zoom-min="14">
<caption fill="#000000" font-size="10" k="name" priority="10" stroke="#FFFFFF" stroke-width="2"/> <caption fill="#000000" font-size="10" k="name" priority="10" stroke="#FFFFFF" stroke-width="2"/>
</rule> </rule>
<rule e="node" k="place" v="hamlet" zoom-min="12"> <rule e="node" k="place" v="hamlet" zoom-min="12">
<caption fill="#000000" font-size="12" k="name" priority="20" stroke="#FFFFFF" stroke-width="2"/> <caption fill="#000000" font-size="14" k="name" priority="20" stroke="#FFFFFF" stroke-width="2"/>
</rule> </rule>
<rule e="node" k="place" v="village" zoom-min="11"> <rule e="node" k="place" v="village" zoom-min="11">
<caption fill="#000000" font-size="12" k="name" priority="20" stroke="#FFFFFF" stroke-width="2"/> <caption fill="#000000" font-size="14" k="name" priority="20" stroke="#FFFFFF" stroke-width="2"/>
</rule> </rule>
<rule e="node" k="place" v="town" zoom-min="9"> <rule e="node" k="place" v="town" zoom-min="9" zoom-max="14">
<caption fill="#000000" font-size="14" k="name" priority="30" stroke="#FFFFFF" stroke-width="2"/> <rule e="node" k="*" v="*" zoom-max="10">
<caption fill="#000000" font-size="14" k="name" priority="30" stroke="#FFFFFF" stroke-width="2"/>
</rule>
<rule e="node" k="*" v="*" zoom-min="11">
<caption fill="#000000" font-size="16" k="name" font-style="bold" priority="30" stroke="#FFFFFF" stroke-width="2"/>
</rule>
</rule> </rule>
<rule e="node" k="place" v="city"> <rule e="node" k="place" v="city">
<rule e="node" k="capital" v="yes|1|2"> <rule e="node" k="*" v="*" zoom-max="10">
<caption fill="#000000" font-size="16" font-style="bold" k="name" priority="40" stroke="#FFFFFF" stroke-width="2" text-transform="uppercase"/> <rule e="node" k="capital" v="yes|1|2">
<caption fill="#000000" font-size="18" font-style="bold" k="name" priority="40" stroke="#FFFFFF" stroke-width="2" text-transform="uppercase"/>
</rule>
<rule e="node" k="capital" v="no|~">
<caption fill="#000000" font-size="18" font-style="bold" k="name" priority="35" stroke="#FFFFFF" stroke-width="2"/>
</rule>
</rule> </rule>
<rule e="node" k="capital" v="no|~"> <rule e="node" k="*" v="*" zoom-min="11" zoom-max="14">
<caption fill="#000000" font-size="16" font-style="bold" k="name" priority="35" stroke="#FFFFFF" stroke-width="2"/> <rule e="node" k="capital" v="yes|1|2">
<caption fill="#000000" font-size="22" font-style="bold" k="name" priority="40" stroke="#FFFFFF" stroke-width="2" text-transform="uppercase"/>
</rule>
<rule e="node" k="capital" v="no|~">
<caption fill="#000000" font-size="22" font-style="bold" k="name" priority="35" stroke="#FFFFFF" stroke-width="2"/>
</rule>
</rule> </rule>
</rule> </rule>
<rule e="node" k="place" v="suburb" zoom-min="15" zoom-max="17">
<caption fill="#000000" font-size="16" k="name" priority="25" stroke="#FFFFFF" stroke-width="2"/>
</rule>
<!-- Nature POIs --> <!-- Nature POIs -->
<rule e="node" k="natural" v="peak" zoom-min="13"> <rule e="node" k="natural" v="peak" zoom-min="13">

View File

@ -3,7 +3,7 @@ unix:!macx:!android {
} else { } else {
TARGET = GPXSee TARGET = GPXSee
} }
VERSION = 13.31 VERSION = 13.32
QT += core \ QT += core \

View File

@ -37,7 +37,7 @@ Unicode true
; The name of the installer ; The name of the installer
Name "GPXSee" Name "GPXSee"
; Program version ; Program version
!define VERSION "13.31" !define VERSION "13.32"
; The file to write ; The file to write
OutFile "GPXSee-${VERSION}_x64.exe" OutFile "GPXSee-${VERSION}_x64.exe"

View File

@ -220,8 +220,13 @@ void RasterTile::drawLines(QPainter *painter, const QList<MapData::Line> &lines)
void RasterTile::drawTextItems(QPainter *painter, void RasterTile::drawTextItems(QPainter *painter,
const QList<TextItem*> &textItems) const QList<TextItem*> &textItems)
{ {
for (int i = 0; i < textItems.size(); i++) QRectF rect(_rect);
textItems.at(i)->paint(painter);
for (int i = 0; i < textItems.size(); i++) {
const TextItem *ti = textItems.at(i);
if (rect.intersects(ti->boundingRect()))
ti->paint(painter);
}
} }
void RasterTile::processPolygons(const QList<MapData::Poly> &polygons, void RasterTile::processPolygons(const QList<MapData::Poly> &polygons,

View File

@ -217,8 +217,13 @@ void RasterTile::drawLines(QPainter *painter,
void RasterTile::drawTextItems(QPainter *painter, void RasterTile::drawTextItems(QPainter *painter,
const QList<TextItem*> &textItems) const const QList<TextItem*> &textItems) const
{ {
for (int i = 0; i < textItems.size(); i++) QRectF rect(_rect);
textItems.at(i)->paint(painter);
for (int i = 0; i < textItems.size(); i++) {
const TextItem *ti = textItems.at(i);
if (rect.intersects(ti->boundingRect()))
ti->paint(painter);
}
} }
static void removeDuplicitLabel(QList<TextItem *> &labels, const QString &text, static void removeDuplicitLabel(QList<TextItem *> &labels, const QString &text,

View File

@ -435,8 +435,8 @@ MapData::MapData(const QString &fileName)
if (!readHeader(file)) if (!readHeader(file))
return; return;
_pathCache.setMaxCost(1024); _pathCache.setMaxCost(2048);
_pointCache.setMaxCost(1024); _pointCache.setMaxCost(2048);
_valid = true; _valid = true;
} }

View File

@ -231,8 +231,13 @@ void RasterTile::processLineLabels(const QVector<PainterPath> &paths,
void RasterTile::drawTextItems(QPainter *painter, void RasterTile::drawTextItems(QPainter *painter,
const QList<TextItem*> &textItems) const QList<TextItem*> &textItems)
{ {
for (int i = 0; i < textItems.size(); i++) QRectF rect(_rect);
textItems.at(i)->paint(painter);
for (int i = 0; i < textItems.size(); i++) {
const TextItem *ti = textItems.at(i);
if (rect.intersects(ti->boundingRect()))
ti->paint(painter);
}
} }
QPainterPath RasterTile::painterPath(const Polygon &polygon, bool curve) const QPainterPath RasterTile::painterPath(const Polygon &polygon, bool curve) const