Google Street View Macro

Examples: NodeAmnesia
Howto: NodeMap
Download: StreetView.py

   1 # -*- coding: iso-8859-1 -*-
   2 """
   3     MoinMoin - StreetView Macro
   4 """
   5 
   6 def execute(macro, text):
   7     if text.find('http://')> -1:
   8         url = text
   9     else:
  10         url = 'http://maps.google.com/maps/%s' % text
  11     html = '''
  12 <iframe width="460" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="%(streetviewlink)s"></iframe>
  13     ''' % {"streetviewlink": url}
  14     return html
StreetView.py

PersonalTelco: Macros/StreetView (last edited 2008-05-06 05:18:16 by JasonMcArthur)