Add GPS marker on map

This commit is contained in:
Leith Bade
2015-02-16 18:40:36 -08:00
parent 921309730b
commit 0bb1ef8c15
4 changed files with 89 additions and 43 deletions

View File

@@ -351,10 +351,6 @@ public class MapView extends SurfaceView {
return mNativeMapView.getAccessToken();
}
//
// Style methods
//
public List<String> getClasses() {
return mNativeMapView.getClasses();
}
@@ -390,6 +386,14 @@ public class MapView extends SurfaceView {
setClasses(classes);
}
public LatLng fromScreenLocation(PointF point) {
return mNativeMapView.latLngForPixel(point);
}
public PointF toScreenLocation(LatLng location) {
return mNativeMapView.pixelForLatLng(location);
}
//
// Lifecycle events
//
@@ -777,7 +781,7 @@ public class MapView extends SurfaceView {
}
// TODO complex decision between rotate or scale or both (see Google
// Maps testapp)
// Maps app)
// Cancel any animation
mNativeMapView.cancelTransitions();
@@ -842,7 +846,7 @@ public class MapView extends SurfaceView {
}
// TODO complex decision between rotate or scale or both (see Google
// Maps testapp). It seems if you start one or the other it takes more
// Maps app). It seems if you start one or the other it takes more
// to start the other too. Haven't figured out what it uses to
// decide when to transition to both at the same time.