CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 06:25:04 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"3c880750e26a8cd8cedf6f221e2610a8"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=HTMmav%2BG2YG8JmHpFG3wTMzhpLhAQvSPVSgRdS6b%2F9wyVvmrndnKhBtwAQGbpfz2EXitorJ0utQ0DqkaRMcMnCeZQGSlSW9jQhcIPYarJgEd6mLle5DMA0wW3WxnzyUf%2BLSHYYixkL%2BPPnxQylFgSX2EaVf%2BnBHII421Bcye71m5NJB%2FAPwzEYr2EyaaE87pT24mIcHmPjVDcoqPcl9FqJYEgz1qJco4RpfIfINJAfU7mwNzqMmHO8foJVTu4yDdkAdrwKWfsRxLBlwEKiq%2FHQ%3D%3D--DIUDUC%2BIXnEM4Vid--8a0rosJrSqw3SNJtIgW3Yw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2056589863.1753683904; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 06:25:04 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 06:25:04 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 857E:1369AB:15569A6:1BF69E0:688717C0
Home · fluttify-project/amap_track_fluttify Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
小山 edited this page Nov 12, 2020
·
3 revisions
猎鹰组件为付费插件,有意请联系qq 382146139
猎鹰组件为付费插件,有意请联系qq 382146139
猎鹰组件为付费插件,有意请联系qq 382146139
名称 | 描述 | 仓库 |
---|---|---|
高德地图 | 高德地图地图组件, 提供地图控件 | |
高德定位 | 高德地图定位组件, 提供独立的定位功能 | |
高德搜索 | 高德地图搜索组件, 提供poi搜索等功能 | |
高德猎鹰 | 高德地图猎鹰组件, 提供实时定位采集功能 | |
百度地图 | 百度地图, 包含了地图控件, 定位以及搜索poi等功能 | |
百度人脸识别 | 百度人脸识别, 提供活体检测等功能 | |
网易直播 | 网易直播推流组件 | |
网易云信 | 网易云信 IM组件 | |
腾讯直播 | 腾讯直播, 包含推流组件和播放组件 | |
腾讯IM | 腾讯IM组件 | |
腾讯地图 | 腾讯地图组件 | |
讯飞语音合成 | 腾讯语言合成组件, 提供文字转语言功能 | |
极光统计 | 极光统计组件, 提供异常上报等功能 | |
阿里云RTC | 阿里云实时音视频 | |
环信 | 环信IM | |
未完待续... | 如有其它需求, 请联系qq 382146139 |
dependencies:
flutter:
sdk: flutter
amap_track_fluttify: ^x.x.x
- 在
AndroidManifest.xml
的<application>
标签下配置从高德开发者后台申请的key.
<application
android:name="io.flutter.app.FlutterApplication"
android:label="amap_track_fluttify_example"
android:icon="@mipmap/ic_launcher">
<meta-data
android:name="com.amap.api.v2.apikey"
android:value="你的key"/>
<!--... 其他内容-->
</application>
- 注意在app/build.gradle的android块中配置签名信息, 并在buildTypes块中指定签名信息, 否则将无法匹配到你在高德后台配置的key, 例如:
android {
signingConfigs {
release {
keyAlias 'amap_track_demo'
keyPassword 'amap_track_demo'
storeFile file('../amap_track_demo.jks')
storePassword 'amap_track_demo'
}
}
buildTypes {
debug {
signingConfig signingConfigs.release
}
profile {
signingConfig signingConfigs.release
}
release {
signingConfig signingConfigs.release
}
}
}
- 由于猎鹰SDK直接包含了定位SDK的代码, 导致不能与定位SDK共存, 解决方案为:
- 使用Android Studio打开android工程;
- 找到amap_location_fluttify模块的
build.gradle
文件; - 74行, 修改
api 'com.amap.api:location:5.1.0'
为compileOnly 'com.amap.api:location:5.1.0'
; 此处修改意为"只在编译期间可见定位SDK, 不包含在最终的apk中", 所以能解决猎鹰SDK和定位SDK的冲突. -
此处修改为临时改动, 当定位插件版本升级时, 会覆盖掉此处的修改, 所以当定位插件升级时, 要留意这里, 需要重新改动回
compileOnly
;
- 权限无需另外申明, 定位服务组件无需另外声明, 已在插件中引入;
- 无需再处理混淆, 已在插件中配置混淆规则;
- 与Android端不同, iOS端的初始化需要在
AmapTrack.instance.init
方法中传入, 具体参考wiki; - 定位需要声明权限, 在Info.plist中添加:
<key>NSLocationWhenInUseUsageDescription</key>
<string>需要定位权限</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>需要定位权限</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>需要定位权限</string>
- 配置后台定位:
- 左侧目录中选中工程名,开启 TARGETS->Capabilities->Background Modes;
- 在 Background Modes中勾选 Location updates,如下图所示:
import 'package:amap_track_fluttify/amap_track_fluttify.dart';
参考wiki.
QQ群 |
---|
![]() |
显示地图 | 社区版 | 专业版 |
---|---|---|
开启寻迹服务 | ✅ | ✅ |
开始收集上报轨迹数据 | ✅ | ✅ |
停止收集上报轨迹数据 | ✅ | ✅ |
停止寻迹服务 | ✅ | ✅ |
根据终端名称创建终端 | ✅ | ✅ |
根据终端名称查询终端信息 | ✅ | ✅ |
查询最后一次上报的位置 | ✅ | ✅ |
获得当前设置的轨迹id | ☑️ | ✅ |
创建轨迹 | ☑️ | ✅ |
查询终端行驶里程 | ☑️ | ✅ |
查询终端历史轨迹 | ☑️ | ✅ |
查询终端下属于某个轨迹的轨迹点 | ☑️ | ✅ |
配置定位采集周期和上报周期 | ☑️ | ✅ |
配置本地缓存大小 | ☑️ | ✅ |
Copyright (C) 2020 yohom
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
You can’t perform that action at this time.