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
c0ba4855
Commit
c0ba4855
authored
Aug 30, 2017
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 ios overlays
parent
98e00e02
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
20 deletions
+25
-20
AMapCircle.m
ios/AMapCircle.m
+7
-5
AMapCircleManager.m
ios/AMapCircleManager.m
+1
-1
AMapMarkerManager.m
ios/AMapMarkerManager.m
+1
-1
AMapPolygon.m
ios/AMapPolygon.m
+6
-4
AMapPolygonManager.m
ios/AMapPolygonManager.m
+1
-1
AMapPolyline.m
ios/AMapPolyline.m
+8
-7
AMapPolylineManager.m
ios/AMapPolylineManager.m
+1
-1
No files found.
ios/AMapCircle.m
View file @
c0ba4855
...
...
@@ -49,11 +49,13 @@
if
(
_strokeColor
==
nil
)
{
_strokeColor
=
UIColor
.
blackColor
;
}
_circle
=
[
MACircle
circleWithCenterCoordinate
:
_coordinate
radius
:
_radius
];
_renderer
=
[[
MACircleRenderer
alloc
]
initWithCircle
:
_circle
];
_renderer
.
lineWidth
=
_strokeWidth
;
_renderer
.
strokeColor
=
_strokeColor
;
_renderer
.
fillColor
=
_fillColor
;
if
(
_renderer
==
nil
)
{
_circle
=
[
MACircle
circleWithCenterCoordinate
:
_coordinate
radius
:
_radius
];
_renderer
=
[[
MACircleRenderer
alloc
]
initWithCircle
:
_circle
];
_renderer
.
lineWidth
=
_strokeWidth
;
_renderer
.
strokeColor
=
_strokeColor
;
_renderer
.
fillColor
=
_fillColor
;
}
return
_renderer
;
}
...
...
ios/AMapCircleManager.m
View file @
c0ba4855
...
...
@@ -4,7 +4,7 @@
#pragma ide diagnostic ignored "OCUnusedClassInspection"
@interface
AMapCircleManager
:
RCTViewManager
<
MAMapViewDelegate
>
@interface
AMapCircleManager
:
RCTViewManager
@end
@implementation
AMapCircleManager
{
...
...
ios/AMapMarkerManager.m
View file @
c0ba4855
...
...
@@ -3,7 +3,7 @@
#pragma ide diagnostic ignored "OCUnusedClassInspection"
@interface
AMapMarkerManager
:
RCTViewManager
<
MAMapViewDelegate
>
@interface
AMapMarkerManager
:
RCTViewManager
@end
@implementation
AMapMarkerManager
{
...
...
ios/AMapPolygon.m
View file @
c0ba4855
...
...
@@ -46,10 +46,12 @@
if
(
_strokeColor
==
nil
)
{
_strokeColor
=
UIColor
.
blackColor
;
}
_renderer
=
[[
MAPolygonRenderer
alloc
]
initWithPolygon
:
_polygon
];
_renderer
.
lineWidth
=
_strokeWidth
;
_renderer
.
strokeColor
=
_strokeColor
;
_renderer
.
fillColor
=
_fillColor
;
if
(
_renderer
==
nil
)
{
_renderer
=
[[
MAPolygonRenderer
alloc
]
initWithPolygon
:
_polygon
];
_renderer
.
lineWidth
=
_strokeWidth
;
_renderer
.
strokeColor
=
_strokeColor
;
_renderer
.
fillColor
=
_fillColor
;
}
return
_renderer
;
}
...
...
ios/AMapPolygonManager.m
View file @
c0ba4855
...
...
@@ -4,7 +4,7 @@
#pragma ide diagnostic ignored "OCUnusedClassInspection"
@interface
AMapPolygonManager
:
RCTViewManager
<
MAMapViewDelegate
>
@interface
AMapPolygonManager
:
RCTViewManager
@end
@implementation
AMapPolygonManager
{
...
...
ios/AMapPolyline.m
View file @
c0ba4855
...
...
@@ -94,13 +94,14 @@
if
(
_color
==
nil
)
{
_color
=
UIColor
.
blackColor
;
}
_renderer
=
[[
MAMultiColoredPolylineRenderer
alloc
]
initWithMultiPolyline
:
_polyline
];
_renderer
.
lineWidth
=
_width
;
_renderer
.
strokeColor
=
_color
;
_renderer
.
strokeColors
=
_colors
;
_renderer
.
lineDash
=
_dashed
;
_renderer
.
gradient
=
_gradient
;
if
(
_renderer
==
nil
)
{
_renderer
=
[[
MAMultiColoredPolylineRenderer
alloc
]
initWithMultiPolyline
:
_polyline
];
_renderer
.
lineWidth
=
_width
;
_renderer
.
strokeColor
=
_color
;
_renderer
.
strokeColors
=
_colors
;
_renderer
.
lineDash
=
_dashed
;
_renderer
.
gradient
=
_gradient
;
}
return
_renderer
;
}
...
...
ios/AMapPolylineManager.m
View file @
c0ba4855
...
...
@@ -4,7 +4,7 @@
#pragma ide diagnostic ignored "OCUnusedClassInspection"
@interface
AMapPolylineManager
:
RCTViewManager
<
MAMapViewDelegate
>
@interface
AMapPolylineManager
:
RCTViewManager
@end
@implementation
AMapPolylineManager
{
...
...
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