def geom_formatter(view, value):
    params = html_params(**{
        "data-role": "leaflet",
        "disabled": "disabled",
        "data-width": 100,
        "data-height": 70,
        "data-geometry-type": to_shape(value).geom_type,
        "data-zoom": 15,
    })
    if value.srid is -1:
        value.srid = 4326
    geojson = view.model.query.with_entities(func.ST_AsGeoJSON(value)).scalar()
    return Markup('<textarea %s>%s</textarea>' % (params, geojson))
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/geoa/typefmt.py/geom_formatter/original