toggle removes all annotations. ready for polygon JNI #1716

This commit is contained in:
Nicholas Hallahan
2015-07-16 15:09:56 -07:00
parent 9e3f60756f
commit 0df1d64823
3 changed files with 31 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ public class MainActivity extends ActionBarActivity {
} else {
if (mIsMarkersOn) {
mIsMarkersOn = false;
removeMarkers();
removeAnnotations();
}
}
}
@@ -311,8 +311,8 @@ public class MainActivity extends ActionBarActivity {
}
}
private void removeMarkers() {
marker.remove();
private void removeAnnotations() {
mMapFragment.getMap().removeAnnotations();
}
// This class forwards location updates to updateLocation()