Added --label-size option
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 23 Aug 2011 08:48:16 +0000 (08:48 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 23 Aug 2011 08:48:16 +0000 (08:48 +0000)
bin/show_targets_ships.py

index f79772d4df0b5c034487d0540ce0c7ef2a912226..185772ca65567e96cca0a6018602a5229be20e46 100755 (executable)
@@ -539,6 +539,9 @@ def main():
     parser.add_option('--icon-size',
         action='store', type='float', dest='icon_size', metavar='SCALE', default=0.5,
         help='Set icons size. Default = %default')
+    parser.add_option('--label-size',
+        action='store', type='float', dest='label_size', metavar='SCALE', default=0.7,
+        help='Set label scale. Default = %default')
     
     parser.add_option('--no-names',
         action='store_const', const=KML_DISPLAYOPT_NONAMES,
@@ -760,6 +763,7 @@ def main():
     kml_displayopt = options.kml_displayopt_noname | options.kml_displayopt_sources
 
     STYLE.icon_size = options.icon_size
+    STYLE.label_size = options.label_size
 
     if options.output_innerkml:
         options.output_kml = True