summaryrefslogtreecommitdiff
path: root/client/Piztor/src/com/macaroon/piztor/MapMaker.java
diff options
context:
space:
mode:
Diffstat (limited to 'client/Piztor/src/com/macaroon/piztor/MapMaker.java')
-rw-r--r--client/Piztor/src/com/macaroon/piztor/MapMaker.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/MapMaker.java b/client/Piztor/src/com/macaroon/piztor/MapMaker.java
index ef79f73..8df1f8a 100644
--- a/client/Piztor/src/com/macaroon/piztor/MapMaker.java
+++ b/client/Piztor/src/com/macaroon/piztor/MapMaker.java
@@ -370,18 +370,6 @@ public class MapMaker extends Activity {
}
/**
- * Update marker
- *
- public void UpdateMarker() {
- mOverlay.addItem(nowMarker);
- if (mMapView != null) {
- mMapView.getOverlays().add(mOverlay);
- mMapView.refresh();
- }
- }
- */
-
- /**
* Draw a marker
*/
public void DrawMarker(GeoPoint markerPoint) {
@@ -401,6 +389,18 @@ public class MapMaker extends Activity {
mMapController.animateTo(markerPoint);
}
+ public GeoPoint getMakerLocation() {
+ if (nowMarker == null) return null;
+ else return nowMarker.getPoint();
+ }
+
+ public void removeMarker() {
+ if (nowMarker == null) return;
+ mOverlay.removeItem(nowMarker);
+ nowMarker = null;
+ mMapView.refresh();
+ }
+
/**
* Remove all other users
*/