flutter_tenc_map 0.0.8 copy "flutter_tenc_map: ^0.0.8" to clipboard
flutter_tenc_map: ^0.0.8 copied to clipboard

A new Flutter plugin.

flutter_tenc_map #

腾讯地图定位

![pub package]

android:配置地图Key #

在AndroidManifest.xml中配置

    <application
            ...
        <meta-data
            android:name="TencentMapSDK"
            android:value="H5PBZ-PNV3V-F2WPG-UUZCN-O6MPQ-LLB3Q" />
            ...
    </application>
value为腾讯地图的KEY值

使用方法 #

1.导入包

import 'package:flutter_tenc_map/flutter_tenc_map.dart';

使用前初始化

FlutterTencMap.init("");

3.请求定位

  Location location = await FlutterTencMap.getLocation(1000);

参数为多久请求一次,默认10000毫秒

4.添加定位监听

   FlutterTencMap.locationController.listener.add((location) {
        //work
      });

5.停止定位

  bool isOK = await FlutterTencMap.stopLocation();
2
likes
15
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_tenc_map