web/views/igeocodable.py
changeset 5444 f7fdb5dd82f6
parent 5424 8ecbcbff9777
child 5467 57372dbfd114
equal deleted inserted replaced
5443:f299ee54d7e0 5444:f7fdb5dd82f6
    57         entity = self.cw_rset.get_entity(row, 0)
    57         entity = self.cw_rset.get_entity(row, 0)
    58         icon = None
    58         icon = None
    59         if hasattr(entity, 'marker_icon'):
    59         if hasattr(entity, 'marker_icon'):
    60             icon = entity.marker_icon()
    60             icon = entity.marker_icon()
    61         else:
    61         else:
    62             icon = (self._cw.external_resource('GMARKER_ICON'), (20, 34), (4, 34), None)
    62             icon = (self._cw.vreg.config.uiprops['GMARKER_ICON'], (20, 34), (4, 34), None)
    63         return {'latitude': entity.latitude, 'longitude': entity.longitude,
    63         return {'latitude': entity.latitude, 'longitude': entity.longitude,
    64                 'title': entity.dc_long_title(),
    64                 'title': entity.dc_long_title(),
    65                 #icon defines : (icon._url, icon.size,  icon.iconAncho', icon.shadow)
    65                 #icon defines : (icon._url, icon.size,  icon.iconAncho', icon.shadow)
    66                 'icon': icon,
    66                 'icon': icon,
    67                 'bubbleUrl': entity.absolute_url(vid='gmap-bubble', __notemplate=1, **extraparams),
    67                 'bubbleUrl': entity.absolute_url(vid='gmap-bubble', __notemplate=1, **extraparams),