hyzp_ybqx-Commit035:已经重新定位兴文县点位地图中心位置为下面标注坐标,已经可以显示兴文县的5个点位的标注:

// 在点位地图中点击某个标注,在控制台会显示该标注的纬度和经度
// 兴文县中心位置:I/flutter (12538): mapPoi = {text: 半岛和居, pt: {latitude: 28.29678023715008, longitude: 105.24189826141459}, uid: b9e39ee2e8304f872fe67bcf}
This commit is contained in:
WinUser01
2021-12-20 09:37:23 +08:00
parent edfa46c0ae
commit 6c85c65609
3 changed files with 33 additions and 2 deletions
@@ -16,6 +16,17 @@
<!-- android:gravity=["top" | "bottom" | "left" | "right" | "center_vertical" |--> <!-- android:gravity=["top" | "bottom" | "left" | "right" | "center_vertical" |-->
<!-- "fill_vertical" | "center_horizontal" | "fill_horizontal" |--> <!-- "fill_vertical" | "center_horizontal" | "fill_horizontal" |-->
<!-- "center" | "fill" | "clip_vertical" | "clip_horizontal"]--> <!-- "center" | "fill" | "clip_vertical" | "clip_horizontal"]-->
<!-- error: '[fill|clip_horizontal|clip_vertical]'
is incompatible with attribute gravity (attr) flags
[bottom=80, center=17, center_horizontal=1, center_vertical=16,
clip_horizontal=8, clip_vertical=128, end=8388613, fill=119,
fill_horizontal=7, fill_vertical=112, left=3, right=5, start=8388611, top=48].
fill=119 01110111
clip_horizontal=7 00001000
clip_vertical=112 10000000
-->
<item android:top="37.5dp"> <item android:top="37.5dp">
<bitmap <bitmap
android:gravity="top" android:gravity="top"
+15
View File
@@ -88,6 +88,21 @@ String yibin_QuXian = '宜宾市兴文';
String copyright_info = '© ' + yibin_QuXian + '生态环境局 四川省踏石科技 版权所有' + service_tel; String copyright_info = '© ' + yibin_QuXian + '生态环境局 四川省踏石科技 版权所有' + service_tel;
String copyright_info_PinYin = 'YIBIN XINGWEN BLACK SMOKE CAR CAPTURE SYSTEM'; String copyright_info_PinYin = 'YIBIN XINGWEN BLACK SMOKE CAR CAPTURE SYSTEM';
// 注意:百度官方发布的城市中心点坐标是经度在前、纬度在后,必须对调才行,否则无法正确显示指定城市的地图
// BMFCoordinate BMFCoordinate(double latitude (纬度), double longitude (经度)) //中国领域一般经度大些
// center: BMFCoordinate(28.77914, 104.644079), //宜宾市翠屏白塔山
double center_latitude = 28.29678023715008; // 区县中心纬度
double center_longitude = 105.24189826141459; // 区县中心经度
// 在点位地图中点击某个标注,在控制台会显示该标注的纬度和经度
// 兴文县中心位置:I/flutter (12538): mapPoi = {text: 半岛和居, pt: {latitude: 28.29678023715008, longitude: 105.24189826141459}, uid: b9e39ee2e8304f872fe67bcf}
// 兴文县5个点位坐标
// 序号 选址位置 车道数量 经纬度 用途
// 1 古高路骨科医院附近 双向6车道 105.19762 28.334613 抓拍自长宁、江安、珙县方向和古宜高速入城黑烟车辆
// 2 高铁站附近 双向4车道 105.239899 28.337284 抓拍自泸州纳溪区方向入城黑烟车辆
// 3 大礼村附近 双向2车道 105.270567 28.285734 抓拍自泸州叙永县方向入城黑烟车辆
// 4 石海收费站附近 双向4车道 105.251038 28.287758 抓拍自古宜高速入城黑烟车辆
// 5 温水溪加油站附近 双向2车道 105.246259 28.286645 抓拍自云南威信县方向入城黑烟车辆
// 4、全局替换,将 ”hyzp_ybqx511528_xingwen“全部替换为 ”hyzp_ybqx511528_xingwen“,自动完成以下修改 // 4、全局替换,将 ”hyzp_ybqx511528_xingwen“全部替换为 ”hyzp_ybqx511528_xingwen“,自动完成以下修改
// (1)、修改 R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\pubspec.yaml 文件中的AppID,但存放目錄不變 // (1)、修改 R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\pubspec.yaml 文件中的AppID,但存放目錄不變
// name: hyzp_ybqx511528_xingwen // name: hyzp_ybqx511528_xingwen
+7 -2
View File
@@ -47,13 +47,18 @@ class _BasicMapState extends State<BasicMap> {
///Flutter百度地图采坑注意: ///Flutter百度地图采坑注意:
// BMFCoordinate(this.latitude, this.longitude); // BMFCoordinate(this.latitude, this.longitude);
// BMFCoordinate 构造方法参数是纬度在前、经度在后,latitude 纬度,longitude 经度 // BMFCoordinate 构造方法参数是纬度在前、经度在后,latitude 纬度,longitude 经度
// 百度官方发布的城市中心点坐标是经度在前、纬度在后,必须对调才行,否则无法正确显示指定城市的地图 // 注意:百度官方发布的城市中心点坐标是经度在前、纬度在后,必须对调才行,否则无法正确显示指定城市的地图
// 比如://52 104.633019062,28.7696747963 四川省-宜宾市翠屏 // 比如://52 104.633019062,28.7696747963 四川省-宜宾市翠屏
// 必须将经纬度对调才行:center: BMFCoordinate(28.7696747963, 104.633019062), //四川省-宜宾市翠屏 // 必须将经纬度对调才行:center: BMFCoordinate(28.7696747963, 104.633019062), //四川省-宜宾市翠屏
//center: BMFCoordinate(28.7696747963, 104.633019062), //四川省-宜宾市翠屏 //center: BMFCoordinate(28.7696747963, 104.633019062), //四川省-宜宾市翠屏
center: BMFCoordinate(28.77914, 104.644079), //center: BMFCoordinate(28.77914, 104.644079),
//宜宾市翠屏白塔山 //宜宾市翠屏白塔山
//宜宾市翠屏白塔山 //宜宾市翠屏白塔山
// 注意:百度官方发布的城市中心点坐标是经度在前、纬度在后,必须对调才行,否则无法正确显示指定城市的地图
// BMFCoordinate BMFCoordinate(double latitude (纬度), double longitude (经度)) //中国领域一般经度大些
// center: BMFCoordinate(28.77914, 104.644079), //宜宾市翠屏白塔山
center: BMFCoordinate(center_latitude, center_longitude), // 不同区县的中心纬度、经度坐标不一样
showMapPoi: _showMapPoi, showMapPoi: _showMapPoi,
//设定地图是否显示底图poi标注(不包含室内图标注),默认true //设定地图是否显示底图poi标注(不包含室内图标注),默认true
zoomLevel: g_zoomLevel, zoomLevel: g_zoomLevel,