[Merkaartor] default config

Mike Canann mikecanann at gmail.com
Tue Dec 2 22:38:55 GMT 2008


It would be easier for beginners to start using the program if there was a
default map displayed when starting the program for the first time (or if
there is no Merkaartor.conf file).

I've tested these simple changes out, and it seems to work.  I defaulted to
the OSM T at H map.


Index: Preferences/MerkaartorPreferences.cpp
===================================================================
--- Preferences/MerkaartorPreferences.cpp       (revision 12171)
+++ Preferences/MerkaartorPreferences.cpp       (working copy)
@@ -631,7 +631,7 @@

 bool MerkaartorPreferences::getBgVisible() const
 {
-       return Sets->value("backgroundImage/Visible", false).toBool();
+       return Sets->value("backgroundImage/Visible", true).toBool();
 }

 void MerkaartorPreferences::setBgVisible(bool theValue)
@@ -646,7 +646,7 @@

 ImageBackgroundType MerkaartorPreferences::getBgType() const
 {
-       return (ImageBackgroundType)Sets->value("backgroundImage/Type",
0).toInt();
+       return (ImageBackgroundType)Sets->value("backgroundImage/Type",
2).toInt();
 }

 QStringList MerkaartorPreferences::getBgTypes()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/merkaartor/attachments/20081202/b0d06095/attachment.html>


More information about the Merkaartor mailing list