Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to use new client data API #192

Merged
merged 1 commit into from
Dec 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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