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
a43880e1
Commit
a43880e1
authored
Jun 04, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除不必要的默认属性
parent
adce6daa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
AMapPolyline.kt
...id/src/main/java/cn/qiuxiang/react/amap3d/AMapPolyline.kt
+3
-2
Marker.js
components/Marker.js
+0
-5
Polyline.js
components/Polyline.js
+0
-3
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapPolyline.kt
View file @
a43880e1
package
cn.qiuxiang.react.amap3d
import
android.graphics.Color
import
com.amap.api.maps.AMap
import
com.amap.api.maps.model.LatLng
import
com.amap.api.maps.model.Polyline
...
...
@@ -13,8 +14,8 @@ import com.facebook.react.views.view.ReactViewGroup
class
AMapPolyline
(
context
:
ThemedReactContext
)
:
ReactViewGroup
(
context
)
{
private
var
polyline
:
Polyline
?
=
null
private
var
coordinates
:
ArrayList
<
LatLng
>
=
ArrayList
()
private
var
width
:
Float
=
0
f
private
var
color
:
Int
=
0
private
var
width
:
Float
=
1
f
private
var
color
:
Int
=
Color
.
BLACK
private
var
colors
:
ArrayList
<
Int
>
=
ArrayList
()
private
var
opacity
:
Float
=
1f
private
var
zIndex
:
Float
=
0f
...
...
components/Marker.js
View file @
a43880e1
...
...
@@ -89,11 +89,6 @@ class Marker extends Component {
onInfoWindowPress
:
React
.
PropTypes
.
func
,
}
static
defaultProps
=
{
opacity
:
1
,
showsInfoWindow
:
true
,
}
_handle
(
name
)
{
return
event
=>
{
if
(
this
.
props
[
name
])
{
...
...
components/Polyline.js
View file @
a43880e1
...
...
@@ -42,10 +42,7 @@ class Polyline extends Component {
}
static
defaultProps
=
{
width
:
1
,
color
:
'#000'
,
colors
:
[],
opacity
:
1
,
}
_handle
(
name
)
{
...
...
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