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
6f84b859
Commit
6f84b859
authored
Jun 12, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 iOS 基本控制接口
parent
183af05c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
+32
-8
AMapView.h
ios/AMapView.h
+6
-0
AMapView.m
ios/AMapView.m
+14
-0
AMapViewManager.m
ios/AMapViewManager.m
+12
-8
No files found.
ios/AMapView.h
0 → 100644
View file @
6f84b859
#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
@interface
AMapView
:
MAMapView
@end
\ No newline at end of file
ios/AMapView.m
0 → 100644
View file @
6f84b859
#import "AMapView.h"
@implementation
AMapView
{
}
-
(
void
)
setShowsTraffic
:
(
BOOL
)
shows
{
[
super
setShowTraffic
:
shows
];
}
-
(
void
)
setTiltEnabled
:
(
BOOL
)
enabled
{
[
super
setRotateCameraEnabled
:
enabled
];
}
@end
ios/AMapViewManager.m
View file @
6f84b859
#import <MAMapKit/MAMapKit.h>
#import <MAMapKit/MAMapKit.h>
#import <React/RCTViewManager.h>
#import <React/RCTViewManager.h>
#import "AMapView.h"
@interface
AMapViewManager
:
RCTViewManager
@interface
AMapViewManager
:
RCTViewManager
@end
@end
...
@@ -10,21 +11,24 @@ RCT_EXPORT_MODULE()
...
@@ -10,21 +11,24 @@ RCT_EXPORT_MODULE()
-
(
UIView
*
)
view
-
(
UIView
*
)
view
{
{
return
[[
MAMapView
alloc
]
init
];
AMapView
*
mapView
=
[[
AMapView
alloc
]
init
];
mapView
.
centerCoordinate
=
CLLocationCoordinate2DMake
(
39
.
9042
,
116
.
4074
);
mapView
.
zoomLevel
=
10
;
return
mapView
;
}
}
RCT_EXPORT_VIEW_PROPERTY
(
showsCompass
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
showsCompass
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
showsScale
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
showsScale
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
showsIndoorMap
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
showsIndoorMap
,
BOOL
)
//
RCT_EXPORT_VIEW_PROPERTY(showsLabels, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
showsLabels
,
BOOL
)
// RCT_EXPORT_VIEW_PROPERTY(showsBuildings
, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
showsTraffic
,
BOOL
)
// RCT_EXPORT_VIEW_PROPERTY(showsTraffic
, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
showsBuildings
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
zoomLevel
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
zoomLevel
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
maxZoomLevel
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
maxZoomLevel
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
minZoomLevel
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
minZoomLevel
,
CGFloat
)
//
RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
zoomEnabled
,
BOOL
)
//
RCT_EXPORT_VIEW_PROPERTY(scrollEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
scrollEnabled
,
BOOL
)
//
RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
rotateEnabled
,
BOOL
)
//
RCT_EXPORT_VIEW_PROPERTY(tiltEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY
(
tiltEnabled
,
BOOL
)
@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