Skip to content

Commit

Permalink
Merge pull request #192 from mapzen/clientData-ApiUpdate
Browse files Browse the repository at this point in the history
Updated to use new client data API
  • Loading branch information
ecgreb committed Dec 11, 2015
2 parents a85eb08 + 99cda76 commit 078a1c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/mapzen/erasermap/view/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public class MainActivity : AppCompatActivity(), MainViewController, RouteCallba

findMe?.clear()
findMe?.addPoint(properties, currentLocation)
findMe?.update();
mapController?.requestRender()
}

override fun setMapTilt(radians: Float) {
Expand Down Expand Up @@ -381,8 +381,8 @@ public class MainActivity : AppCompatActivity(), MainViewController, RouteCallba
properties.add("type", "point");

searchResults?.addPoint(properties, lngLat)
searchResults?.update();
}
mapController?.requestRender()
}

override fun centerOnCurrentFeature(features: List<Feature>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@ public class RouteModeView : LinearLayout, RouteViewController, ViewPager.OnPage
val properties = com.mapzen.tangram.Properties()
properties.add("type", "point");

routeIcon?.clear()
routeIcon?.clearData()
routeIcon?.addPoint(properties, LngLat(location.longitude, location.latitude))
routeIcon?.update();
mapController?.requestRender()

}

override fun centerMapOnCurrentLocation() {
Expand Down Expand Up @@ -441,7 +442,7 @@ public class RouteModeView : LinearLayout, RouteViewController, ViewPager.OnPage

routeLine?.clear()
routeLine?.addLine(properties, mapGeometry)
routeLine?.update();
mapController?.requestRender()
}

override fun hideRouteLine() {
Expand Down

0 comments on commit 078a1c5

Please sign in to comment.