Skip to content

Commit

Permalink
Merge pull request #687 from mapzen/686-limit-station-icons
Browse files Browse the repository at this point in the history
limit station icons
  • Loading branch information
ecgreb authored Jul 19, 2016
2 parents 04f6c72 + be85467 commit 6800b7e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,10 @@ class RouteModeView : LinearLayout, RouteViewController, ViewPager.OnPageChangeL
val stationPoints = ArrayList<LngLat>()
if (instruction.getTransitInfo() != null) {
val stops = instruction.getTransitInfo()!!.getTransitStops()
for (transitStop in stops) {
stationPoints.add(LngLat(transitStop.getLon(),
transitStop.getLat()))
}
val firstStop = stops[0]
stationPoints.add(LngLat(firstStop.getLon(), firstStop.getLat()))
val lastStop = stops[stops.size-1]
stationPoints.add(LngLat(lastStop.getLon(), lastStop.getLat()))
}
mapzenMap?.drawTransitRouteLine(points, stationPoints,
instruction.getTransitInfoColorHex() as String)
Expand All @@ -504,6 +504,7 @@ class RouteModeView : LinearLayout, RouteViewController, ViewPager.OnPageChangeL

override fun hideRouteLine() {
mapzenMap?.clearRouteLine()
mapzenMap?.clearTransitRouteLine()
}

fun clearRoute() {
Expand Down

0 comments on commit 6800b7e

Please sign in to comment.