Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
amap_flutter_map
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
amap_flutter_map
Commits
25cd4a92
提交
25cd4a92
authored
12月 20, 2024
作者:
祁增奎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、导航和地图冲突问题解决
2、增加检测是否在覆盖区域判断方法
上级
0a08742e
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
39 行增加
和
17 行删除
+39
-17
AMapFlutterFactory.m
ios/Classes/AMapFlutterFactory.m
+1
-1
AMapViewController.h
ios/Classes/AMapViewController.h
+1
-1
MAAnnotationView+Flutter.h
ios/Classes/Category/MAAnnotationView+Flutter.h
+1
-1
MAMapView+Flutter.h
ios/Classes/Category/MAMapView+Flutter.h
+1
-1
MAPointAnnotation+Flutter.h
ios/Classes/Category/MAPointAnnotation+Flutter.h
+1
-1
MAPolygon+Flutter.h
ios/Classes/Category/MAPolygon+Flutter.h
+1
-1
MAPolygonRenderer+Flutter.h
ios/Classes/Category/MAPolygonRenderer+Flutter.h
+1
-1
MAPolyline+Flutter.h
ios/Classes/Category/MAPolyline+Flutter.h
+1
-1
MAPolylineRenderer+Flutter.h
ios/Classes/Category/MAPolylineRenderer+Flutter.h
+1
-1
AMapMarker.h
ios/Classes/Model/AMapMarker.h
+1
-1
AMapPolygon.h
ios/Classes/Model/AMapPolygon.h
+1
-1
AMapPolyline.h
ios/Classes/Model/AMapPolyline.h
+1
-1
AMapMarkerController.h
ios/Classes/OverlayController/AMapMarkerController.h
+1
-1
AMapPolygonController.h
ios/Classes/OverlayController/AMapPolygonController.h
+1
-1
AMapPolygonController.m
ios/Classes/OverlayController/AMapPolygonController.m
+22
-0
AMapPolylineController.h
ios/Classes/OverlayController/AMapPolylineController.h
+1
-1
AMapConvertUtil.h
ios/Classes/Util/AMapConvertUtil.h
+1
-1
amap_flutter_map.podspec
ios/amap_flutter_map.podspec
+1
-1
没有找到文件。
ios/Classes/AMapFlutterFactory.m
浏览文件 @
25cd4a92
...
...
@@ -6,7 +6,7 @@
//
#import "AMapFlutterFactory.h"
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
#import "AMapViewController.h"
@implementation
AMapFlutterFactory
{
...
...
ios/Classes/AMapViewController.h
浏览文件 @
25cd4a92
...
...
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAAnnotationView+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/5.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAMapView+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/10/30.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAPointAnnotation+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/9.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAPolygon+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/12.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAPolygonRenderer+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/12.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAPolyline+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/9.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Category/MAPolylineRenderer+Flutter.h
浏览文件 @
25cd4a92
...
...
@@ -5,7 +5,7 @@
// Created by lly on 2020/11/7.
//
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Model/AMapMarker.h
浏览文件 @
25cd4a92
...
...
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Model/AMapPolygon.h
浏览文件 @
25cd4a92
...
...
@@ -6,7 +6,7 @@
//
#import <Foundation/Foundation.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Model/AMapPolyline.h
浏览文件 @
25cd4a92
...
...
@@ -6,7 +6,7 @@
//
#import <Foundation/Foundation.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/OverlayController/AMapMarkerController.h
浏览文件 @
25cd4a92
...
...
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/OverlayController/AMapPolygonController.h
浏览文件 @
25cd4a92
...
...
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/OverlayController/AMapPolygonController.m
浏览文件 @
25cd4a92
...
...
@@ -12,6 +12,7 @@
#import "MAPolygonRenderer+Flutter.h"
#import "FlutterMethodChannel+MethodCallDispatch.h"
@interface
AMapPolygonController
()
@property
(
nonatomic
,
strong
)
NSMutableDictionary
<
NSString
*
,
AMapPolygon
*>
*
polygonDict
;
...
...
@@ -50,10 +51,31 @@
}
result
(
nil
);
}];
[
_methodChannel
addMethodName
:
@"polygon#containsPoint"
withHandler
:
^
(
FlutterMethodCall
*
_Nonnull
call
,
FlutterResult
_Nonnull
result
)
{
id
point
=
call
.
arguments
[
@"point"
];
if
(
!
[
point
isKindOfClass
:[
NSArray
class
]])
{
result
(
false
);
return
;
}
NSArray
*
locationArray
=
(
NSArray
*
)
point
;
if
(
locationArray
.
count
<
2
)
{
result
(
false
);
return
;
}
CLLocationDegrees
latitude
=
[
locationArray
[
0
]
doubleValue
];
CLLocationDegrees
longitude
=
[
locationArray
[
1
]
doubleValue
];
CLLocationCoordinate2D
coordinate
=
CLLocationCoordinate2DMake
(
latitude
,
longitude
);
MAMapPoint
mapPoint
=
MAMapPointForCoordinate
(
coordinate
);
NSString
*
_id
=
call
.
arguments
[
@"id"
];
AMapPolygon
*
polygon
=
[
weakSelf
polygonForId
:
_id
];
result
(
@
(
MAPolygonContainsPoint
(
mapPoint
,
polygon
.
polygon
.
points
,
polygon
.
polygon
.
pointCount
)));
}];
}
return
self
;
}
-
(
nullable
AMapPolygon
*
)
polygonForId
:(
NSString
*
)
polygonId
{
return
_polygonDict
[
polygonId
];
}
...
...
ios/Classes/OverlayController/AMapPolylineController.h
浏览文件 @
25cd4a92
...
...
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/Classes/Util/AMapConvertUtil.h
浏览文件 @
25cd4a92
...
...
@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <Flutter/Flutter.h>
#i
mport <MAMap
Kit/MAMapKit.h>
#i
nclude <AMapNavi
Kit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
...
...
ios/amap_flutter_map.podspec
浏览文件 @
25cd4a92
...
...
@@ -16,7 +16,7 @@ A new Flutter plugin.
s
.
source_files
=
'Classes/**/*'
s
.
public_header_files
=
'Classes/**/*.h'
s
.
dependency
'Flutter'
s
.
dependency
'AMap
3DMap
'
s
.
dependency
'AMap
Navi
'
s
.
dependency
'AMapSearch'
s
.
static_framework
=
true
s
.
platform
=
:ios
,
'8.0'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论