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
e1e9a924
Commit
e1e9a924
authored
Dec 22, 2017
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename AMapModel to AMapOverlay
parent
a189d648
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
18 deletions
+18
-18
AMapCircle.h
ios/maps/AMapCircle.h
+2
-2
AMapHeatMap.h
ios/maps/AMapHeatMap.h
+2
-2
AMapMultiPoint.h
ios/maps/AMapMultiPoint.h
+2
-2
AMapOverlay.h
ios/maps/AMapOverlay.h
+1
-1
AMapOverlay.m
ios/maps/AMapOverlay.m
+2
-2
AMapPolygon.h
ios/maps/AMapPolygon.h
+2
-2
AMapPolyline.h
ios/maps/AMapPolyline.h
+2
-2
AMapView.m
ios/maps/AMapView.m
+2
-2
AMapViewManager.m
ios/maps/AMapViewManager.m
+3
-3
No files found.
ios/maps/AMapCircle.h
View file @
e1e9a924
#import <MAMapKit/MAMapKit.h>
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
#pragma ide diagnostic ignored "OCUnusedPropertyInspection"
@interface
AMapCircle
:
AMap
Model
@interface
AMapCircle
:
AMap
Overlay
@property
(
nonatomic
,
readonly
)
CLLocationCoordinate2D
coordinate
;
@property
(
nonatomic
,
readonly
)
MAMapRect
boundingMapRect
;
...
...
ios/maps/AMapHeatMap.h
View file @
e1e9a924
#import <MAMapKit/MAMapKit.h>
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
@interface
AMapHeatMap
:
AMap
Model
@interface
AMapHeatMap
:
AMap
Overlay
@end
ios/maps/AMapMultiPoint.h
View file @
e1e9a924
#import <React/RCTComponent.h>
#import <MAMapKit/MAMapKit.h>
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
@interface
AMapMultiPoint
:
AMap
Model
<
MAMultiPointOverlayRendererDelegate
>
@interface
AMapMultiPoint
:
AMap
Overlay
<
MAMultiPointOverlayRendererDelegate
>
@property
(
nonatomic
,
copy
)
RCTBubblingEventBlock
onItemPress
;
@end
ios/maps/AMap
Model
.h
→
ios/maps/AMap
Overlay
.h
View file @
e1e9a924
#import <MAMapKit/MAOverlayRenderer.h>
@interface
AMap
Model
:
UIView
<
MAOverlay
>
@interface
AMap
Overlay
:
UIView
<
MAOverlay
>
-
(
MAOverlayRenderer
*
)
renderer
;
@end
ios/maps/AMap
Model
.m
→
ios/maps/AMap
Overlay
.m
View file @
e1e9a924
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
@implementation
AMap
Model
{
@implementation
AMap
Overlay
{
}
-
(
MAOverlayRenderer
*
)
renderer
{
...
...
ios/maps/AMapPolygon.h
View file @
e1e9a924
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
#pragma ide diagnostic ignored "OCUnusedPropertyInspection"
@interface
AMapPolygon
:
AMap
Model
@interface
AMapPolygon
:
AMap
Overlay
@property
(
nonatomic
,
readonly
)
CLLocationCoordinate2D
coordinate
;
@property
(
nonatomic
,
readonly
)
MAMapRect
boundingMapRect
;
...
...
ios/maps/AMapPolyline.h
View file @
e1e9a924
#import <MAMapKit/MAMapKit.h>
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
#pragma ide diagnostic ignored "OCUnusedPropertyInspection"
@interface
AMapPolyline
:
AMap
Model
@interface
AMapPolyline
:
AMap
Overlay
@property
(
nonatomic
,
readonly
)
CLLocationCoordinate2D
coordinate
;
@property
(
nonatomic
,
readonly
)
MAMapRect
boundingMapRect
;
...
...
ios/maps/AMapView.m
View file @
e1e9a924
...
...
@@ -55,7 +55,7 @@
_markers
[[
@
(
marker
.
annotation
.
hash
)
stringValue
]]
=
marker
;
[
self
addAnnotation
:
marker
.
annotation
];
}
if
([
subview
isKindOfClass
:[
AMap
Model
class
]])
{
if
([
subview
isKindOfClass
:[
AMap
Overlay
class
]])
{
[
self
addOverlay
:(
id
<
MAOverlay
>
)
subview
];
}
}
...
...
@@ -66,7 +66,7 @@
AMapMarker
*
marker
=
(
AMapMarker
*
)
subview
;
[
self
removeAnnotation
:
marker
.
annotation
];
}
if
([
subview
isKindOfClass
:[
AMap
Model
class
]])
{
if
([
subview
isKindOfClass
:[
AMap
Overlay
class
]])
{
[
self
removeOverlay
:(
id
<
MAOverlay
>
)
subview
];
}
}
...
...
ios/maps/AMapViewManager.m
View file @
e1e9a924
#import <React/RCTUIManager.h>
#import "AMapView.h"
#import "AMapMarker.h"
#import "AMap
Model
.h"
#import "AMap
Overlay
.h"
#pragma ide diagnostic ignored "OCUnusedClassInspection"
#pragma ide diagnostic ignored "-Woverriding-method-mismatch"
...
...
@@ -112,8 +112,8 @@ RCT_EXPORT_METHOD(animateTo:(nonnull NSNumber *)reactTag params:(NSDictionary *)
}
-
(
MAOverlayRenderer
*
)
mapView
:
(
MAMapView
*
)
mapView
rendererForOverlay
:
(
id
<
MAOverlay
>
)
overlay
{
if
([
overlay
isKindOfClass
:[
AMap
Model
class
]])
{
return
((
AMap
Model
*
)
overlay
).
renderer
;
if
([
overlay
isKindOfClass
:[
AMap
Overlay
class
]])
{
return
((
AMap
Overlay
*
)
overlay
).
renderer
;
}
return
nil
;
}
...
...
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