Package io.goobi.viewer.model.misc
Class GeoLocationInfo
java.lang.Object
io.goobi.viewer.model.misc.GeoLocationInfo
Aggregates geographic location data for a record, including multiple coordinate points and their display properties.
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GeoLocationInfo instance.GeoLocationInfo(org.json.JSONObject json) Creates a new GeoLocationInfo instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectgetAsJson.Getter for the fieldcenterLocation.Getter for the fieldlocationList.voidsetCenterLocation(GeoLocation centerLocation) Setter for the fieldcenterLocation.voidsetLocationList(List<GeoLocation> locationList) Setter for the fieldlocationList.
-
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- aJSONObjectobject.- 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
Getter for the fieldcenterLocation.- Returns:
- the geographic coordinates used as the initial center of the map view
-
setCenterLocation
Setter for the fieldcenterLocation.- Parameters:
centerLocation- the geographic coordinates used as the initial center of the map view
-
getLocationList
Getter for the fieldlocationList.- Returns:
- the list of geographic locations to display as markers on the map
-
setLocationList
Setter for the fieldlocationList.- Parameters:
locationList- the list of geographic locations to display as markers on the map
-