Skip to content

首次进入会比较慢,可以加一个getLastKnownLocation #27

@laoqiu

Description

@laoqiu
    // 设置定位监听
    locationClient.setLocationListener(locationListener);
    // 首次定位加速
    AMapLocation location = locationClient.getLastKnownLocation();
    sendPosition(location);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions