Package su.onno.ui

Class ListSpec.MapSpec<E>

java.lang.Object
su.onno.ui.ListSpec.MapSpec<E>
Enclosing class:
ListSpec<E>

public static final class ListSpec.MapSpec<E> extends Object
Where a list's map geometry comes from, and how it reads. A marker point may come from a lat(java.lang.String)/lng(java.lang.String) numeric pair; arbitrary geometry (including a Point) comes from a geoJson(java.lang.String) field. A record may use both. label(java.lang.String) names the field shown in a feature's popup; defaultView opens the list on the map rather than the table.
  • Method Details

    • lat

      public ListSpec.MapSpec<E> lat(String latField)
      The latitude field, when the point is stored as a numeric lat/lng pair.
    • lat

      public <N extends Number> ListSpec.MapSpec<E> lat(Field<E,N> field)
      Compiler-checked latitude field.
    • lng

      public ListSpec.MapSpec<E> lng(String lngField)
      The longitude field, when the point is stored as a numeric lat/lng pair.
    • lng

      public <N extends Number> ListSpec.MapSpec<E> lng(Field<E,N> field)
      Compiler-checked longitude field.
    • geoJson

      public ListSpec.MapSpec<E> geoJson(String geoJsonField)
      A GeoJSON field for arbitrary geometry — points, paths, and areas (what .widget("geojson") writes).
    • geoJson

      public <V> ListSpec.MapSpec<E> geoJson(Field<E,V> field)
      Compiler-checked GeoJSON field.
    • label

      public ListSpec.MapSpec<E> label(String labelField)
      The field shown in a feature's popup (defaults to a system identifier when unset).
    • label

      public <V> ListSpec.MapSpec<E> label(Field<E,V> field)
      Compiler-checked marker label field.
    • defaultView

      public ListSpec.MapSpec<E> defaultView()
      Open the list on the map view rather than the table.
    • latField

      public String latField()
    • lngField

      public String lngField()
    • geoJsonField

      public String geoJsonField()
    • labelField

      public String labelField()
    • isDefaultView

      public boolean isDefaultView()