aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java b/main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java
index 08c9ae7..9664c3e 100644
--- a/main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java
+++ b/main/src/cgeo/geocaching/maps/google/v1/GoogleMapView.java
@@ -5,6 +5,7 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
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 cgeo.geocaching.maps.interfaces.GeneralOverlay;
@@ -136,6 +137,13 @@ public class GoogleMapView extends MapView implements MapViewImpl {
}
@Override
+ public DirectionOverlay createAddDirectionOverlay(final Geopoint coords, final String geocode) {
+ final GoogleDirectionOverlay ovl = new GoogleDirectionOverlay(this, coords, geocode);
+ getOverlays().add(ovl);
+ return (DirectionOverlay) ovl.getBase();
+ }
+
+ @Override
public DistanceOverlay createAddDistanceOverlay(final Geopoint coords, final String geocode) {
final GoogleDistanceOverlay ovl = new GoogleDistanceOverlay(this, coords, geocode);
getOverlays().add(ovl);