From 7c95d28947a9ed8f003bfaef147f2fb72dc4b6ab Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 2 Nov 2014 11:07:28 +0100 Subject: rename package The package not only contains the GeoPoint definition, but other location related classes, too. --- main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java') diff --git a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java index 4a6d733..0560ad4 100644 --- a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java +++ b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java @@ -1,6 +1,6 @@ package cgeo.geocaching.maps.interfaces; -import cgeo.geocaching.geopoint.Viewport; +import cgeo.geocaching.location.Viewport; import cgeo.geocaching.maps.CachesOverlay; import cgeo.geocaching.maps.PositionAndScaleOverlay; -- cgit v1.1 From 8fbaa36d29ea1934a48f51039bb60eaa1df3f010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Gr=C3=A4fe?= Date: Mon, 26 Jan 2015 21:24:13 +0100 Subject: Add distance overlay to the map view --- main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java') diff --git a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java index 0560ad4..00a8790 100644 --- a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java +++ b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java @@ -1,7 +1,9 @@ package cgeo.geocaching.maps.interfaces; +import cgeo.geocaching.location.Geopoint; import cgeo.geocaching.location.Viewport; import cgeo.geocaching.maps.CachesOverlay; +import cgeo.geocaching.maps.DistanceOverlay; import cgeo.geocaching.maps.PositionAndScaleOverlay; import org.eclipse.jdt.annotation.NonNull; @@ -48,6 +50,8 @@ public interface MapViewImpl { PositionAndScaleOverlay createAddPositionAndScaleOverlay(); + DistanceOverlay createAddDistanceOverlay(Geopoint coords, String geocode); + void setMapSource(); /** -- cgit v1.1 From 5d3018c77573e4cacc795284139c260ea70aa8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Gr=C3=A4fe?= Date: Mon, 26 Jan 2015 22:53:38 +0100 Subject: Add line between curren location and destination to the map view --- main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java') diff --git a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java index 00a8790..f15f12a 100644 --- a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java +++ b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java @@ -3,6 +3,7 @@ package cgeo.geocaching.maps.interfaces; import cgeo.geocaching.location.Geopoint; import cgeo.geocaching.location.Viewport; import cgeo.geocaching.maps.CachesOverlay; +import cgeo.geocaching.maps.DirectionOverlay; import cgeo.geocaching.maps.DistanceOverlay; import cgeo.geocaching.maps.PositionAndScaleOverlay; @@ -52,6 +53,8 @@ public interface MapViewImpl { DistanceOverlay createAddDistanceOverlay(Geopoint coords, String geocode); + DirectionOverlay createAddDirectionOverlay(Geopoint coords, String geocode); + void setMapSource(); /** -- cgit v1.1 From 8c773d5c41fb118c4013e3f7ccf9f10186d4d6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Gr=C3=A4fe?= Date: Wed, 28 Jan 2015 21:05:33 +0100 Subject: Save memory by reducing the number of map overlays Move DistanceOverlay and DirectionOverlay into PositionAndScaleOverlay to save memory. --- main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java') diff --git a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java index f15f12a..1876dfc 100644 --- a/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java +++ b/main/src/cgeo/geocaching/maps/interfaces/MapViewImpl.java @@ -3,8 +3,6 @@ package cgeo.geocaching.maps.interfaces; import cgeo.geocaching.location.Geopoint; import cgeo.geocaching.location.Viewport; import cgeo.geocaching.maps.CachesOverlay; -import cgeo.geocaching.maps.DirectionOverlay; -import cgeo.geocaching.maps.DistanceOverlay; import cgeo.geocaching.maps.PositionAndScaleOverlay; import org.eclipse.jdt.annotation.NonNull; @@ -49,11 +47,7 @@ public interface MapViewImpl { CachesOverlay createAddMapOverlay(Context context, Drawable drawable); - PositionAndScaleOverlay createAddPositionAndScaleOverlay(); - - DistanceOverlay createAddDistanceOverlay(Geopoint coords, String geocode); - - DirectionOverlay createAddDirectionOverlay(Geopoint coords, String geocode); + PositionAndScaleOverlay createAddPositionAndScaleOverlay(final Geopoint coords, final String geocode); void setMapSource(); -- cgit v1.1