Package globus.glmap
Class GLMapVectorRelation
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapVectorObject
globus.glmap.GLMapVectorRelation
- All Implemented Interfaces:
GLMapTagsContainer,AutoCloseable
Vector object for a relation, such as a route.
When the map stores them, GLMapVectorObject.point() is an anchor on a member and GLMapVectorObject.getBBox() spans all
members; otherwise the relation has only tags. It has no points of its own and GLMapVectorObject.asGeoJSON() writes no
geometry.
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapVectorObject
GLMapVectorObject.Type -
Field Summary
Fields inherited from class globus.glmap.GLMapVectorObject
drawAttributes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class globus.glmap.GLMapVectorObject
asGeoJSON, compare, copyProperties, createFromGeoJSONOrError, createFromGeoJSONOrThrow, createFromGeoJSONStreamOrError, createFromGeoJSONStreamOrThrow, createGeoLine, createGeoPoint, createMultiline, createMultilineGeo, createPoint, createPolygon, createPolygonGeo, equals, getBBox, getLineCount, getLinePointCount, getLinePointStart, getPointAtIndex, getPointCount, getPolygonCount, getPolygonLineCount, getPolygonLineStart, getType, hashCode, localizedName, point, setValueForKey, updateDrawAttributes, valueForKey, valuesForKeyMethods inherited from class globus.glmap.GLNativeObject
close, dispose
-
Constructor Details
-
GLMapVectorRelation
public GLMapVectorRelation()Creates a relation that has no geometry. Set its tags withGLMapVectorObject.setValueForKey(String, String).
-
-
Method Details
-
createFromJSONOrError
Deprecated.Save the OSM id and a point instead and find the relation withGLSearch.FindRelationNearPoint, as on iOS. Will be removed in 2.4.0.Restores a relation from a GeoJSON feature. A point geometry becomes the anchor; the bbox shrinks to it.- Parameters:
json- GeoJSON feature- Returns:
GLMapVectorRelationorGLMapError
-
GLSearch.FindRelationNearPoint, as on iOS.