Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-amap3d
Commits
dc63c879
Commit
dc63c879
authored
Jun 14, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 iOS 代码
parent
e001df62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
19 deletions
+4
-19
AMapView.h
ios/AMapView.h
+1
-1
AMapViewManager.m
ios/AMapViewManager.m
+1
-0
RCTConvert+AMapView.h
ios/RCTConvert+AMapView.h
+0
-7
RCTConvert+AMapView.m
ios/RCTConvert+AMapView.m
+2
-11
No files found.
ios/AMapView.h
View file @
dc63c879
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#import <MAMapKit/MAMapKit.h>
#import <RCTComponent.h>
#import <R
eact/R
CTComponent.h>
@interface
AMapView
:
MAMapView
@interface
AMapView
:
MAMapView
@property
(
nonatomic
,
copy
)
RCTBubblingEventBlock
onReady
;
@property
(
nonatomic
,
copy
)
RCTBubblingEventBlock
onReady
;
...
...
ios/AMapViewManager.m
View file @
dc63c879
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#import "AMapView.h"
#import "AMapView.h"
#pragma ide diagnostic ignored "OCUnusedClassInspection"
#pragma ide diagnostic ignored "OCUnusedClassInspection"
#pragma ide diagnostic ignored "-Woverriding-method-mismatch"
@interface
AMapViewManager
:
RCTViewManager
<
MAMapViewDelegate
>
@interface
AMapViewManager
:
RCTViewManager
<
MAMapViewDelegate
>
@end
@end
...
...
ios/RCTConvert+AMapView.h
deleted
100644 → 0
View file @
e001df62
#import <MAMapKit/MAMapView.h>
#import <React/RCTConvert.h>
@interface
RCTConvert
(
AMapView
)
+
(
CLLocationCoordinate2D
)
CLLocationCoordinate2D
:(
id
)
json
;
@end
\ No newline at end of file
ios/RCTConvert+AMapView.m
View file @
dc63c879
#import "RCTConvert+AMapView.h"
#import <MAMapKit/MAMapView.h>
#import <React/RCTConvert.h>
@implementation
RCTConvert
(
AMapView
)
@implementation
RCTConvert
(
AMapView
)
...
@@ -10,14 +11,4 @@ RCT_ENUM_CONVERTER(MAMapType, (@{
...
@@ -10,14 +11,4 @@ RCT_ENUM_CONVERTER(MAMapType, (@{
@"bus"
:
@
(
MAMapTypeBus
),
@"bus"
:
@
(
MAMapTypeBus
),
}),
MAMapTypeStandard
,
integerValue
)
}),
MAMapTypeStandard
,
integerValue
)
RCT_CONVERTER
(
CLLocationDegrees
,
CLLocationDegrees
,
doubleValue
);
RCT_CONVERTER
(
CLLocationDistance
,
CLLocationDistance
,
doubleValue
);
+
(
CLLocationCoordinate2D
)
CLLocationCoordinate2D
:(
id
)
json
{
return
CLLocationCoordinate2DMake
(
[
self
CLLocationDegrees
:
json
[
@"latitude"
]],
[
self
CLLocationDegrees
:
json
[
@"longitude"
]]);
}
@end
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment