Class GeoLocationInfo

java.lang.Object
io.goobi.viewer.model.misc.GeoLocationInfo

public class GeoLocationInfo extends Object
Aggregates geographic location data for a record, including multiple coordinate points and their display properties.
Author:
Florian Alpers
  • Constructor Details

    • GeoLocationInfo

      public GeoLocationInfo()
      Creates a new GeoLocationInfo instance.
    • GeoLocationInfo

      public GeoLocationInfo(org.json.JSONObject json) throws org.json.JSONException
      Creates a new GeoLocationInfo instance.
      Parameters:
      json - a JSONObject object.
      Throws:
      org.json.JSONException - if any.
  • Method Details

    • getAsJson

      public org.json.JSONObject getAsJson()
      getAsJson.
      Returns:
      the center location and all geo-location points as a JSON object
    • getCenterLocation

      public GeoLocation getCenterLocation()
      Getter for the field centerLocation.
      Returns:
      the geographic coordinates used as the initial center of the map view
    • setCenterLocation

      public void setCenterLocation(GeoLocation centerLocation)
      Setter for the field centerLocation.
      Parameters:
      centerLocation - the geographic coordinates used as the initial center of the map view
    • getLocationList

      public List<GeoLocation> getLocationList()
      Getter for the field locationList.
      Returns:
      the list of geographic locations to display as markers on the map
    • setLocationList

      public void setLocationList(List<GeoLocation> locationList)
      Setter for the field locationList.
      Parameters:
      locationList - the list of geographic locations to display as markers on the map