AMapTools class

Constructors

AMapTools()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

calculateArea(List<LatLng> points) → double
根据提供的多边形顶点坐标points计算多边形的面积
distanceBetween(LatLng latLng1, LatLng latLng2) → double
用haversine公式计算经纬度两点间的距离, 注意:这里将地球当做了一个正球体来计算距离,当经纬度跨度较大时,有轻微的距离误差
getVerticalPointOnLine(Offset target, Offset begin, Offset end) → Offset
获取点到直线上的垂足
latLngIsInPolygon(LatLng latLng, List<LatLng> latLngList) → bool
判断坐标点latLng是否在多边形latLngList内