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
903efe81
Commit
903efe81
authored
Jun 04, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正自定义信息窗体显示问题
parent
43d80ae7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
AMapMarkerManager.kt
...c/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
+1
-1
AMapView.kt
android/src/main/java/cn/qiuxiang/react/amap3d/AMapView.kt
+4
-4
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt
View file @
903efe81
...
@@ -19,7 +19,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
...
@@ -19,7 +19,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() {
override
fun
addView
(
marker
:
AMapMarker
,
view
:
View
,
index
:
Int
)
{
override
fun
addView
(
marker
:
AMapMarker
,
view
:
View
,
index
:
Int
)
{
when
(
view
)
{
when
(
view
)
{
is
AMapInfoWindow
->
marker
.
infoWindow
=
view
as
ReactViewGroup
is
AMapInfoWindow
->
marker
.
infoWindow
=
view
is
AMapOverlay
->
marker
.
setIconView
(
view
)
is
AMapOverlay
->
marker
.
setIconView
(
view
)
}
}
}
}
...
...
android/src/main/java/cn/qiuxiang/react/amap3d/AMapView.kt
View file @
903efe81
...
@@ -80,13 +80,13 @@ class AMapView(context: ThemedReactContext) : MapView(context) {
...
@@ -80,13 +80,13 @@ class AMapView(context: ThemedReactContext) : MapView(context) {
}
}
map
.
setInfoWindowAdapter
(
object
:
AMap
.
InfoWindowAdapter
{
map
.
setInfoWindowAdapter
(
object
:
AMap
.
InfoWindowAdapter
{
private
val
paddingTop
=
context
.
resources
.
displayMetrics
.
density
val
paddingTop
=
context
.
resources
.
displayMetrics
.
density
override
fun
getInfoWindow
(
marker
:
Marker
):
View
{
override
fun
getInfoWindow
(
marker
:
Marker
):
View
?
{
return
markers
[
marker
.
id
]
?.
infoWindow
as
View
return
markers
[
marker
.
id
]
?.
infoWindow
}
}
override
fun
getInfoContents
(
marker
:
Marker
):
View
{
override
fun
getInfoContents
(
marker
:
Marker
):
View
?
{
val
layout
=
LinearLayout
(
context
)
val
layout
=
LinearLayout
(
context
)
layout
.
orientation
=
LinearLayout
.
VERTICAL
layout
.
orientation
=
LinearLayout
.
VERTICAL
val
titleView
=
TextView
(
context
)
val
titleView
=
TextView
(
context
)
...
...
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