Package globus.glmap
Class GLMapRelation
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapRelation
- All Implemented Interfaces:
GLMapTagsContainer
GLMapRelation
is a bridge class, to work with GLMap internal representation of
relation.-
Method Summary
Modifier and TypeMethodDescriptionasJSON()
Serialize object as GeoJSONvoid
copyProperties
(GLMapTagsContainer other) Copies all properties from another tags container object.static Object
createFromJSONOrError
(String json) Creates an array of GLMapVectorObject from stringboolean
int
hashCode()
localizedName
(GLMapLocaleSettings localeSettings) Returns localized name.void
setValueForKey
(String key, String value) Sets value for keyvalueForKey
(String key) Returns value for the keyvaluesForKey
(String key) Returns values for the keyMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
hashCode
public int hashCode() -
equals
-
createFromJSONOrError
Creates an array of GLMapVectorObject from string- Parameters:
json
- source string with geo JSON data- Returns:
- objects constructed from geo JSON data
-
asJSON
Serialize object as GeoJSON- Returns:
- GeoJSON string
-
setValueForKey
Description copied from interface:GLMapTagsContainer
Sets value for key- Specified by:
setValueForKey
in interfaceGLMapTagsContainer
- Parameters:
key
- Key of valuevalue
- value to set
-
valueForKey
Description copied from interface:GLMapTagsContainer
Returns value for the key- Specified by:
valueForKey
in interfaceGLMapTagsContainer
- Parameters:
key
- Key of requested value- Returns:
- value associated with given key. (if loaded from geo JSON get values from "properties" section)
-
valuesForKey
Description copied from interface:GLMapTagsContainer
Returns values for the key- Specified by:
valuesForKey
in interfaceGLMapTagsContainer
- Parameters:
key
- Key of requested values- Returns:
- array of values associated with given key
-
localizedName
Description copied from interface:GLMapTagsContainer
Returns localized name.- Specified by:
localizedName
in interfaceGLMapTagsContainer
- Parameters:
localeSettings
- locale settings to use- Returns:
- name of object
-
copyProperties
Description copied from interface:GLMapTagsContainer
Copies all properties from another tags container object.- Specified by:
copyProperties
in interfaceGLMapTagsContainer
- Parameters:
other
- Other tags container.
-