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
aecb6355
Commit
aecb6355
authored
Jun 05, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增地图类型:公交地图(似乎并没有什么用)
parent
6dbbdf51
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
AMapViewManager.kt
...src/main/java/cn/qiuxiang/react/amap3d/AMapViewManager.kt
+1
-0
MapView.js
components/MapView.js
+2
-1
map-types.js
example/src/map-types.js
+1
-0
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapViewManager.kt
View file @
aecb6355
...
@@ -105,6 +105,7 @@ internal class AMapViewManager : ViewGroupManager<AMapView>() {
...
@@ -105,6 +105,7 @@ internal class AMapViewManager : ViewGroupManager<AMapView>() {
"satellite"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_SATELLITE
"satellite"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_SATELLITE
"navigation"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_NAVI
"navigation"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_NAVI
"night"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_NIGHT
"night"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_NIGHT
"bus"
->
view
.
map
.
mapType
=
AMap
.
MAP_TYPE_BUS
}
}
}
}
...
...
components/MapView.js
View file @
aecb6355
...
@@ -21,8 +21,9 @@ class MapView extends Component {
...
@@ -21,8 +21,9 @@ class MapView extends Component {
* - satellite: 卫星地图
* - satellite: 卫星地图
* - navigation: 导航地图
* - navigation: 导航地图
* - night: 夜间地图
* - night: 夜间地图
* - bus: 公交地图
*/
*/
mapType
:
PropTypes
.
oneOf
([
'standard'
,
'satellite'
,
'navigation'
,
'night'
]),
mapType
:
PropTypes
.
oneOf
([
'standard'
,
'satellite'
,
'navigation'
,
'night'
,
'bus'
]),
/**
/**
* 是否启用定位
* 是否启用定位
...
...
example/src/map-types.js
View file @
aecb6355
...
@@ -16,6 +16,7 @@ export default class MapTypes extends Component {
...
@@ -16,6 +16,7 @@ export default class MapTypes extends Component {
<
Picker
.
Item
label
=
'卫星'
value
=
'satellite'
/>
<
Picker
.
Item
label
=
'卫星'
value
=
'satellite'
/>
<
Picker
.
Item
label
=
'导航'
value
=
'navigation'
/>
<
Picker
.
Item
label
=
'导航'
value
=
'navigation'
/>
<
Picker
.
Item
label
=
'夜间'
value
=
'night'
/>
<
Picker
.
Item
label
=
'夜间'
value
=
'night'
/>
<
Picker
.
Item
label
=
'公交'
value
=
'bus'
/>
<
/Picker>
,
<
/Picker>
,
}
}
}
}
...
...
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