From 344a0161475d7288f6cd324a27e1c0cf524e4175 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 17 Sep 2008 14:27:28 +0000 Subject: [PATCH] an option to remove labels and stuff entirely --- plc-kml.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plc-kml.py b/plc-kml.py index aa972cd..7cf6eb3 100755 --- a/plc-kml.py +++ b/plc-kml.py @@ -134,6 +134,10 @@ class KmlMap: # close description description +='' + if not self.options.labels: + name="" + description="" + # STYLE if self.options.use_google_icons: if not peer_id: @@ -180,6 +184,9 @@ def main () : parser.add_option("-o","--output",action="store",dest="output", default=default_output, help="output file - default is %s"%default_output) + parser.add_option("-n","--no-label",action="store_false",dest="labels", + default=True, + help="outputs only geographic positions, no labels") parser.add_option("-c","--custom",action="store_false",dest="use_google_icons", default=True, help="use locally customized icons rather than the google-provided defaults") @@ -189,6 +196,7 @@ def main () : parser.add_option("-f","--foreign",action="store",dest="foreign_icon", default=default_foreign_icon, help="set icon url to use for foreign sites marker -- default is %s"%default_foreign_icon) + (options, args) = parser.parse_args() if len(args) != 0: parser.print_help() -- 2.43.0