'Prepare the gis_config form'

@staticmethod
def gis_config_form_setup():

    T = current.T
    table = current.db.gis_config
    label = T('Name')
    table.name.label = label
    table.name.represent = (lambda v: (v or ''))
    table.name.comment = DIV(_class='tooltip', _title=('%s|%s' % (label, T("If    this    configuration    is    displayed    on    the    GIS    config    menu,    give    it    a    name    to    use    in    the    menu.    The    name    for    a    personal    map    configuration    will    be    set    to    the    user's    name."))))
    field = table.pe_id
    field.label = T('Person    or    OU')
    field.readable = field.writable = True
    field.represent = current.s3db.pr_PersonEntityRepresent(show_label=False)
    field.widget = S3AutocompleteWidget('pr', 'pentity')
    label = T('Default?')
    table.pe_default.label = label
    table.pe_default.comment = DIV(_class='tooltip', _title=('%s|%s' % (label, T('If    there    are    multiple    configs    for    a    person,    which    should    be    their    default?'))))
    table.region_location_id.label = T('Region')
    table.region_location_id.comment = DIV(_class='tooltip', _title=('%s|%s' % (T('Region    Location'), T("A    location    that    specifies    the    geographic    area    for    this    region.    This    can    be    a    location    from    the    location    hierarchy,    or    a    'group    location',    or    a    location    that    has    a    boundary    for    the    area."))))
    label = T('Default    Location')
    table.default_location_id.label = label
    table.default_location_id.comment = DIV(_class='tooltip', _title=('%s|%s' % (label, T('Use    this    to    set    the    starting    location    for    the    Location    Selector.'))))
    table.lat.label = T('Map    Center    Latitude')
    table.lat.comment = DIV(_class='tooltip', _title=('%s|%s|%s|%s' % (T('Latitude    of    Map    Center'), T('The    map    will    be    displayed    initially    with    this    latitude    at    the    center.'), T('Latitude    is    North-South    (Up-Down).'), T('Latitude    is    zero    on    the    equator    and    positive    in    the    northern    hemisphere    and    negative    in    the    southern    hemisphere.'))))
    table.lon.label = T('Map    Center    Longitude')
    table.lon.comment = DIV(_class='tooltip', _title=('%s|%s|%s|%s' % (T('Longitude    of    Map    Center'), T('The    map    will    be    displayed    initially    with    this    longitude    at    the    center.'), T('Longitude    is    West    -    East    (sideways).'), T('Longitude    is    zero    on    the    prime    meridian    (through    Greenwich,    United    Kingdom)    and    is    positive    to    the    east,    across    Europe    and    Asia.        Longitude    is    negative    to    the    west,    across    the    Atlantic    and    the    Americas.'))))
    label = T('Web    Map    Service    Browser    Name')
    table.wmsbrowser_name.label = label
    table.wmsbrowser_name.comment = DIV(_class='tooltip', _title=('%s|%s' % (label, T('Title    to    show    for    the    Web    Map    Service    panel    in    the    Tools    panel.'))))
    label = T('Web    Map    Service    Browser    URL')
    table.wmsbrowser_url.label = label
    table.wmsbrowser_url.comment = DIV(_class='tooltip', _title=('%s|%s|%s' % (label, T('The    URL    for    the    GetCapabilities    page    of    a    Web    Map    Service    (WMS)    whose    layers    you    want    available    via    the    Browser    panel    on    the    Map.'), T('The    form    of    the    URL    is    http://your/web/map/service?service=WMS&request=GetCapabilities    where    your/web/map/service    stands    for    the    URL    path    to    the    WMS.'))))
    table.geocoder.label = T('Use    Geocoder    for    address    lookups?')
    label = T('Minimum    Location    Latitude')
    table.lat_min.label = label
    table.lat_min.comment = DIV(_class='tooltip', _title=('%s|%s|%s' % (label, T('Latitude    of    far    southern    end    of    the    region    of    interest.'), T('Used    to    check    that    latitude    of    entered    locations    is    reasonable.    May    be    used    to    filter    lists    of    resources    that    have    locations.'))))
    label = T('Maximum    Location    Latitude')
    table.lat_max.label = label
    table.lat_max.comment = DIV(_class='tooltip', _title=('%s|%s|%s' % (label, T('Latitude    of    far    northern    end    of    the    region    of    interest.'), T('Used    to    check    that    latitude    of    entered    locations    is    reasonable.    May    be    used    to    filter    lists    of    resources    that    have    locations.'))))
    label = T('Minimum    Location    Longitude')
    table.lon_min.label = label
    table.lon_min.comment = DIV(_class='tooltip', _title=('%s|%s|%s' % (label, T('Longitude    of    far    western    end    of    the    region    of    interest.'), T('Used    to    check    that    longitude    of    entered    locations    is    reasonable.    May    be    used    to    filter    lists    of    resources    that    have    locations.'))))
    label = T('Maximum    Location    Longitude')
    table.lon_max.label = label
    table.lon_max.comment = DIV(_class='tooltip', _title=('%s|%s|%s' % (label, T('Longitude    of    far    eastern    end    of    the    region    of    interest.'), T('Used    to    check    that    longitude    of    entered    locations    is    reasonable.    May    be    used    to    filter    lists    of    resources    that    have    locations.'))))
    table.zoom_levels.label = T('Zoom    Levels')
    table.zoom.label = T('Map    Zoom')
    table.zoom.comment = DIV(_class='tooltip', _title=('%s|%s' % (T('Zoom'), T('How    much    detail    is    seen.    A    high    Zoom    level    means    lot    of    detail,    but    not    a    wide    area.    A    low    Zoom    level    means    seeing    a    wide    area,    but    not    a    high    level    of    detail.'))))
