Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/gui/scaemv/Changelog
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Version 0.1.1
Adds support for map tiles without file extensions.
Version 0.1.0
Release date: 2013.12.20
Release date: 2013.12.20
3 changes: 2 additions & 1 deletion apps/gui/scaemv/descriptions/scaemv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@ should specify the way they are stored.
# - %3 = line (0- 2^zoom-1 in Mercator projection)
# Each parameter can be used more than once.
# @note It is not mandatory to specify the extension of the file, the
# algorithm will try and fetch PNG and JPG files
# algorithm will try and fetch PNG and JPG files (with and without
# extension).
map.tilePattern = "%1/%2/%3"

More information about tiles
Expand Down
3 changes: 2 additions & 1 deletion apps/gui/scwev/descriptions/scwev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ should specify the way they are stored.
# - %3 = line (0- 2^zoom-1 in Mercator projection)
# Each parameter can be used more than once.
# @note It is not mandatory to specify the extension of the file, the
# algorithm will try and fetch PNG and JPG files
# algorithm will try and fetch PNG and JPG files (with and without
# extension).
map.tilePattern = "%1/%2/%3"

More information about tiles
Expand Down
5 changes: 4 additions & 1 deletion libs/ipgp/gui/map/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ const int& Tile::z() const {
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
const QString Tile::path() const {

const QString noext = _path + suffix();
const QString png = _path + suffix() + ".png";
const QString jpg = _path + suffix() + ".jpg";

if ( QFile::exists(png) )
if ( QFile::exists(noext) )
return noext;
else if ( QFile::exists(png) )
return png;
else
return jpg;
Expand Down