Commit abf24dcf authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Add copyright overlay to Map

Change-Id: I2868f68705f5dcea167782bcad9d4f2161793f42
parent cc121a48
...@@ -67,6 +67,7 @@ import org.osmdroid.util.BoundingBox; ...@@ -67,6 +67,7 @@ import org.osmdroid.util.BoundingBox;
import org.osmdroid.util.GeoPoint; import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.MapView; import org.osmdroid.views.MapView;
import org.osmdroid.views.MapView.OnTapListener; import org.osmdroid.views.MapView.OnTapListener;
import org.osmdroid.views.overlay.CopyrightOverlay;
import org.osmdroid.views.overlay.Marker; import org.osmdroid.views.overlay.Marker;
import org.osmdroid.views.overlay.Marker.OnMarkerClickListener; import org.osmdroid.views.overlay.Marker.OnMarkerClickListener;
import org.osmdroid.views.overlay.Marker.OnMarkerDragListener; import org.osmdroid.views.overlay.Marker.OnMarkerDragListener;
...@@ -296,6 +297,7 @@ class NativeOpenStreetMapController implements MapController, MapListener { ...@@ -296,6 +297,7 @@ class NativeOpenStreetMapController implements MapController, MapListener {
defaultInfoWindow = new OverlayInfoWindow(view); defaultInfoWindow = new OverlayInfoWindow(view);
view.setTilesScaledToDpi(true); view.setTilesScaledToDpi(true);
view.setMapListener(this); view.setMapListener(this);
view.getOverlayManager().add(new CopyrightOverlay(form));
view.getOverlayManager().add(touch); view.getOverlayManager().add(touch);
view.addOnTapListener(new OnTapListener() { view.addOnTapListener(new OnTapListener() {
@Override @Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment