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
7bc13787
Commit
7bc13787
authored
May 27, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正接口错误
parent
edce0bc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
controls.js
example/src/controls.js
+5
-5
layers.js
example/src/layers.js
+5
-5
No files found.
example/src/controls.js
View file @
7bc13787
...
...
@@ -11,7 +11,7 @@ export default class Controls extends Component {
showsCompass
:
false
,
showsScale
:
false
,
showsZoomControls
:
true
,
shows
My
LocationButton
:
false
,
showsLocationButton
:
false
,
}
render
()
{
...
...
@@ -32,8 +32,8 @@ export default class Controls extends Component {
<
View
style
=
{
styles
.
control
}
>
<
Text
>
定位
<
/Text
>
<
Switch
onValueChange
=
{
shows
MyLocationButton
=>
this
.
setState
({
showsMy
LocationButton
})}
value
=
{
this
.
state
.
shows
My
LocationButton
}
/
>
onValueChange
=
{
shows
LocationButton
=>
this
.
setState
({
shows
LocationButton
})}
value
=
{
this
.
state
.
showsLocationButton
}
/
>
<
/View
>
<
View
style
=
{
styles
.
control
}
>
<
Text
>
缩放
<
/Text
>
...
...
@@ -43,10 +43,10 @@ export default class Controls extends Component {
<
/View
>
<
/View
>
<
MapView
showsUserLocation
=
{
true
}
locationEnabled
=
{
true
}
showsCompass
=
{
this
.
state
.
showsCompass
}
showsScale
=
{
this
.
state
.
showsScale
}
shows
MyLocationButton
=
{
this
.
state
.
showsMy
LocationButton
}
shows
LocationButton
=
{
this
.
state
.
shows
LocationButton
}
showsZoomControls
=
{
this
.
state
.
showsZoomControls
}
style
=
{
styles
.
map
}
/
>
<
/View
>
...
...
example/src/layers.js
View file @
7bc13787
...
...
@@ -8,7 +8,7 @@ export default class Layers extends Component {
}
state
=
{
shows
MapText
:
true
,
shows
Labels
:
true
,
showsTraffic
:
false
,
showsBuildings
:
false
,
}
...
...
@@ -29,15 +29,15 @@ export default class Layers extends Component {
value
=
{
this
.
state
.
showsTraffic
}
/
>
<
/View
>
<
View
style
=
{
styles
.
control
}
>
<
Text
>
文本
<
/Text
>
<
Text
>
标签
<
/Text
>
<
Switch
onValueChange
=
{
shows
MapText
=>
this
.
setState
({
showsMapText
})}
value
=
{
this
.
state
.
shows
MapText
}
/
>
onValueChange
=
{
shows
Labels
=>
this
.
setState
({
showsLabels
})}
value
=
{
this
.
state
.
shows
Labels
}
/
>
<
/View
>
<
/View
>
<
MapView
zoomLevel
=
{
17
}
shows
MapText
=
{
this
.
state
.
showsMapText
}
shows
Labels
=
{
this
.
state
.
showsLabels
}
showsTraffic
=
{
this
.
state
.
showsTraffic
}
showsBuildings
=
{
this
.
state
.
showsBuildings
}
style
=
{
styles
.
map
}
/
>
...
...
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