summaryrefslogtreecommitdiff
path: root/client/Piztor/src/com/macaroon/piztor/MapMaker.java
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-31 12:45:35 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-31 12:45:35 +0800
commitbb24f90c879b4a0216d592dce18590d841da7289 (patch)
treecc42711a8c39d3ed905290b38385f0eb559b4aef /client/Piztor/src/com/macaroon/piztor/MapMaker.java
parent325eea0b19a5f9cd4e54947d2ad9cb5e9d2169b3 (diff)
parent69a911d88c0e41f2aafbd6d88d53ea430890b3cd (diff)
Merge branch 'master' of github.com:Determinant/piztor
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
*/