Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
Project
Project
Details
Activity
Releases
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
android
android_fiveworld
Commits
9c0bfa8f
Commit
9c0bfa8f
authored
Jul 27, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决地图抖动的问题
parent
c6c482c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+3
-4
No files found.
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
9c0bfa8f
...
@@ -160,14 +160,14 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -160,14 +160,14 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
currentLon
=
status
?.
target
?.
longitude
?:
0.0
currentLon
=
status
?.
target
?.
longitude
?:
0.0
mRecommendStopSearch
?.
requestRecommendStop
(
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
RecommendStopSearchOption
().
location
(
center
LatLng
(
currentLat
,
currentLat
)
)
)
)
)
}
}
})
})
mBaiduMap
?.
setOnMapLoadedCallback
{
mBaiduMap
?.
setOnMapLoadedCallback
{
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
center
))
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
LatLng
(
currentLat
,
currentLat
)
))
}
}
//使地图缩放级别增大一级
//使地图缩放级别增大一级
binding
.
imageIn
.
setOnClickListener
{
binding
.
imageIn
.
setOnClickListener
{
...
@@ -183,7 +183,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -183,7 +183,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
}
}
mRecommendStopSearch
=
RecommendStopSearch
.
newInstance
()
mRecommendStopSearch
=
RecommendStopSearch
.
newInstance
()
mRecommendStopSearch
?.
setOnGetRecommendStopResultListener
{
result
->
mRecommendStopSearch
?.
setOnGetRecommendStopResultListener
{
result
->
result
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
addMarkerToMap
(
result
.
recommendStopInfoList
)
addMarkerToMap
(
result
.
recommendStopInfoList
)
}
}
...
...
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