web/views/igeocodable.py
changeset 1600 5c68c50ca08f
parent 1587 56e347b8189c
child 1641 2c80b09d8d86
equal deleted inserted replaced
1599:38a1d0f190e2 1600:5c68c50ca08f
    69         rql = self.rset.printable_rql()
    69         rql = self.rset.printable_rql()
    70         if urlparams is None:
    70         if urlparams is None:
    71             loadurl = self.build_url(rql=rql, vid='geocoding-json')
    71             loadurl = self.build_url(rql=rql, vid='geocoding-json')
    72         else:
    72         else:
    73             loadurl = self.build_url(rql=rql, vid='geocoding-json', **urlparams)
    73             loadurl = self.build_url(rql=rql, vid='geocoding-json', **urlparams)
    74         loadurl = loadurl.replace('&','&')
       
    75         self.w(u'<div style="width: %spx; height: %spx;" class="widget gmap" '
    74         self.w(u'<div style="width: %spx; height: %spx;" class="widget gmap" '
    76                u'cubicweb:wdgtype="GMapWidget" cubicweb:loadtype="auto" '
    75                u'cubicweb:wdgtype="GMapWidget" cubicweb:loadtype="auto" '
    77                u'cubicweb:loadurl="%s" cubicweb:uselabel="%s"> </div>' % (width, height, loadurl, uselabel))
    76                u'cubicweb:loadurl="%s" cubicweb:uselabel="%s"> </div>' % (width, height, loadurl, uselabel))
    78 
    77 
    79 
    78