Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

坐标转换

小山 edited this page Oct 19, 2020 · 1 revision

坐标转换

其他坐标系转到高德坐标系

支持GPS/Mapbar/Baidu等多种类型坐标在高德地图上使用。参见类AmapService

使用方法

final result = await AmapService.instance.convertCoordinate(_coord, CoordType.GPS);

经纬度坐标与屏幕像素坐标互转

支持经纬度坐标与屏幕像素坐标互转。具体用法为:

final latLng = await controller.fromScreenLocation(screenPoint); // screenPoint为屏幕坐标,返回经纬度
final screenPoint = await controller.toScreenLocation(latLng); // latLng为经纬度坐标,返回屏幕坐标
Clone this wiki locally