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
6643b286
Commit
6643b286
authored
Jun 21, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整命名 dottedLine => dashed
parent
2ee92ef8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
AMapPolyline.kt
...id/src/main/java/cn/qiuxiang/react/amap3d/AMapPolyline.kt
+2
-2
AMapPolylineManager.kt
...main/java/cn/qiuxiang/react/amap3d/AMapPolylineManager.kt
+3
-3
AMapPolyline.m
ios/AMapPolyline.m
+1
-1
AMapPolylineManager.m
ios/AMapPolylineManager.m
+1
-1
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapPolyline.kt
View file @
6643b286
...
...
@@ -43,7 +43,7 @@ class AMapPolyline(context: ThemedReactContext) : ReactViewGroup(context) {
polyline
?.
isGeodesic
=
value
}
var
d
ottedLine
:
Boolean
=
false
var
d
ashed
:
Boolean
=
false
set
(
value
)
{
field
=
value
polyline
?.
isDottedLine
=
value
...
...
@@ -74,7 +74,7 @@ class AMapPolyline(context: ThemedReactContext) : ReactViewGroup(context) {
.
width
(
width
)
.
useGradient
(
gradient
)
.
geodesic
(
geodesic
)
.
setDottedLine
(
d
ottedLine
)
.
setDottedLine
(
d
ashed
)
.
transparency
(
opacity
)
.
zIndex
(
zIndex
))
}
...
...
android/src/main/java/cn/qiuxiang/react/amap3d/AMapPolylineManager.kt
View file @
6643b286
...
...
@@ -54,9 +54,9 @@ internal class AMapPolylineManager : ViewGroupManager<AMapPolyline>() {
polyline
.
geodesic
=
geodesic
}
@ReactProp
(
name
=
"d
ottedLine
"
)
fun
setD
ottedLine
(
polyline
:
AMapPolyline
,
dottedLine
:
Boolean
)
{
polyline
.
d
ottedLine
=
dottedLine
@ReactProp
(
name
=
"d
ashed
"
)
fun
setD
ashed
(
polyline
:
AMapPolyline
,
dashed
:
Boolean
)
{
polyline
.
d
ashed
=
dashed
}
@ReactProp
(
name
=
"gradient"
)
...
...
ios/AMapPolyline.m
View file @
6643b286
...
...
@@ -36,7 +36,7 @@
_renderer
.
strokeColor
=
color
;
}
-
(
void
)
setD
ottedLine
:
(
BOOL
)
dashed
{
-
(
void
)
setD
ashed
:
(
BOOL
)
dashed
{
_dashed
=
dashed
;
_renderer
.
lineDash
=
dashed
;
}
...
...
ios/AMapPolylineManager.m
View file @
6643b286
...
...
@@ -19,6 +19,6 @@ RCT_EXPORT_MODULE()
RCT_EXPORT_VIEW_PROPERTY
(
coordinates
,
CoordinateArray
)
RCT_EXPORT_VIEW_PROPERTY
(
width
,
CGFloat
)
RCT_EXPORT_VIEW_PROPERTY
(
color
,
UIColor
)
RCT_EXPORT_VIEW_PROPERTY
(
d
ottedLine
,
BOOL
)
RCT_EXPORT_VIEW_PROPERTY
(
d
ashed
,
BOOL
)
@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