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
ceb0acce
Commit
ceb0acce
authored
Jul 10, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 Overlay 更新通知
parent
8d35f57c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Overlay.js
components/Overlay.js
+4
-3
marker.js
example/src/examples/marker.js
+0
-1
No files found.
components/Overlay.js
View file @
ceb0acce
...
@@ -2,8 +2,6 @@ import React, {PropTypes, Component} from 'react'
...
@@ -2,8 +2,6 @@ import React, {PropTypes, Component} from 'react'
import
{
import
{
View
,
View
,
UIManager
,
UIManager
,
Platform
,
NativeModules
,
findNodeHandle
,
findNodeHandle
,
requireNativeComponent
,
requireNativeComponent
,
}
from
'react-native'
}
from
'react-native'
...
@@ -13,7 +11,7 @@ class Overlay extends Component {
...
@@ -13,7 +11,7 @@ class Overlay extends Component {
...
View
.
propTypes
,
...
View
.
propTypes
,
}
}
componentDidU
pdate
()
{
_u
pdate
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
UIManager
.
dispatchViewManagerCommand
(
UIManager
.
dispatchViewManagerCommand
(
findNodeHandle
(
this
),
findNodeHandle
(
this
),
...
@@ -23,6 +21,9 @@ class Overlay extends Component {
...
@@ -23,6 +21,9 @@ class Overlay extends Component {
},
0
)
},
0
)
}
}
componentDidUpdate
=
this
.
_update
componentDidMount
=
this
.
_update
render
()
{
render
()
{
return
<
AMapOverlay
{...
this
.
props
}
/
>
return
<
AMapOverlay
{...
this
.
props
}
/
>
}
}
...
...
example/src/examples/marker.js
View file @
ceb0acce
...
@@ -40,7 +40,6 @@ export default class MarkerExample extends Component {
...
@@ -40,7 +40,6 @@ export default class MarkerExample extends Component {
/
>
/
>
<
Marker
<
Marker
icon
=
'green'
icon
=
'green'
infoWindowWidth
=
{
100
}
coordinate
=
{{
coordinate
=
{{
latitude
:
39.806901
,
latitude
:
39.806901
,
longitude
:
116.297972
,
longitude
:
116.297972
,
...
...
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