We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用Geolocation.getCurrentPosition()的时候,position打印出来的数据和当前类型定义文件不匹配。 这是打印出来的数据:
这是当前文件类型: export interface Location { accuracy: number; latitude: number; longitude: number; altitude?: number; speed?: number; heading?: number; timestamp?: number; errorCode?: ErrorCode; errorInfo?: string; locationDetail?: string; locationType?: LocationType; gpsAccuracy?: GpsAccuracy; coordinateType?: "WGS84" | "GCJ02"; trustedLevel?: TrustedLevel; }
The text was updated successfully, but these errors were encountered:
position 的类型是这个
react-native-amap-geolocation/src/geolocation.ts
Lines 20 to 29 in d3bc831
而 location 的类型也没问题,只是有些字段没有标注出来。
Sorry, something went wrong.
No branches or pull requests
调用Geolocation.getCurrentPosition()的时候,position打印出来的数据和当前类型定义文件不匹配。
这是打印出来的数据:
这是当前文件类型:
export interface Location {
accuracy: number;
latitude: number;
longitude: number;
altitude?: number;
speed?: number;
heading?: number;
timestamp?: number;
errorCode?: ErrorCode;
errorInfo?: string;
locationDetail?: string;
locationType?: LocationType;
gpsAccuracy?: GpsAccuracy;
coordinateType?: "WGS84" | "GCJ02";
trustedLevel?: TrustedLevel;
}
The text was updated successfully, but these errors were encountered: