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 GeoJSONvoidcopyProperties(GLMapTagsContainer other) Copies all properties from another tags container object.static ObjectcreateFromJSONOrError(String json) Creates an array of GLMapVectorObject from stringbooleaninthashCode()localizedName(GLMapLocaleSettings localeSettings) Returns localized name.voidsetValueForKey(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:GLMapTagsContainerSets value for key- Specified by:
setValueForKeyin interfaceGLMapTagsContainer- Parameters:
key- Key of valuevalue- value to set
-
valueForKey
Description copied from interface:GLMapTagsContainerReturns value for the key- Specified by:
valueForKeyin 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:GLMapTagsContainerReturns values for the key- Specified by:
valuesForKeyin interfaceGLMapTagsContainer- Parameters:
key- Key of requested values- Returns:
- array of values associated with given key
-
localizedName
Description copied from interface:GLMapTagsContainerReturns localized name.- Specified by:
localizedNamein interfaceGLMapTagsContainer- Parameters:
localeSettings- locale settings to use- Returns:
- name of object
-
copyProperties
Description copied from interface:GLMapTagsContainerCopies all properties from another tags container object.- Specified by:
copyPropertiesin interfaceGLMapTagsContainer- Parameters:
other- Other tags container.
-