Way class

An immutable container for all data associated with a single way or area (closed way).

Constructors

Way(int layer, List<Tag> tags, List<List<ILatLong>> latLongs, ILatLong? labelPosition)
Creates a new Way.
Way.simple(List<ILatLong> latLongs)

Properties

hashCode int
The hash code for this object.
no setteroverride
labelPosition ILatLong?
The position of the area label (may be null).
final
latLongs List<List<ILatLong>>
The geographical coordinates of the way nodes. The first item is the outer way whereas succeeding item always represents inner ways. todo replace with class-structure to make it easier to understand
final
layer int
The layer of this way + 5 (to avoid negative values).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags TagCollection
The tags of this way.
final

Methods

getBoundingBox() BoundingBox
Returns the bounding box of the outer way.
getTag(String key) String?
Returns the value of the tag with the given key, or null if it does not exist.
hasTag(String key) bool
Returns true if this way has a tag with the given key.
hasTagValue(String key, String value) bool
Returns true if this way has a tag with the given key and value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toStringWithoutNames() String
Returns a string representation of the way, excluding name tags.

Operators

operator ==(Object other) bool
The equality operator.
override