Way class

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

Constructors

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

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.
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 List<Tag>
The tags of this way.
final

Methods

getBoundingBox() BoundingBox
getTag(String key) String?
hasTag(String key) bool
hasTagValue(String key, String value) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printTags() String
toString() String
A string representation of this object.
override
toStringWithoutNames() String

Operators

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