def render_object_map(self, geo_location): """ Returns all the script and html required to display a map corresponding to the map engine selected in the administration area. `geo_location` -- a ``Geo`` object Example usage:: <tal:block condition="python:here.prop_details('geo_location')['show']" content="structure python:here.portal_map.render_object_map(here.geo_location)"/> """ if not geo_location or geo_location.missing_lat_lon: return '' return self._object_index_map(coord_json=geo_as_json(geo_location))
def coord_as_json(self, value): return geo_as_json(value)