blob: ad481cb0529df21759ddd6d1ea92054bcc9fbda1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
package cgeo.geocaching.maps.interfaces;
import cgeo.geocaching.geopoint.Viewport;
import cgeo.geocaching.maps.CachesOverlay;
import cgeo.geocaching.maps.PositionOverlay;
import cgeo.geocaching.maps.ScaleOverlay;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.Drawable;
/**
* Defines common functions of the provider-specific
* MapView implementations
*/
public interface MapViewImpl {
void setBuiltInZoomControls(boolean b);
void displayZoomControls(boolean b);
void preLoad();
void clearOverlays();
void addOverlay(OverlayImpl ovl);
MapControllerImpl getMapController();
void destroyDrawingCache();
GeoPointImpl getMapViewCenter();
int getLatitudeSpan();
int getLongitudeSpan();
int getMapZoomLevel();
int getWidth();
int getHeight();
MapProjectionImpl getMapProjection();
Context getContext();
CachesOverlay createAddMapOverlay(Context context, Drawable drawable);
ScaleOverlay createAddScaleOverlay(Activity activity);
PositionOverlay createAddPositionOverlay(Activity activity);
void setMapSource();
/**
* Map-library unspecific method to request a repaint of either
* a specific overlay, that changed, or the mapview as a whole
* (if overlay is null)
*
* @param overlay
* Overlay to repaint or null if the mapview has changed
*/
void repaintRequired(GeneralOverlay overlay);
void setOnDragListener(OnMapDragListener onDragListener);
/**
* Indicates if overlay text or line colours should be dark (normal case)
* or light (inverted case)
*
* @return true - text/draw in light colors, false text/draw in dark colors
*/
boolean needsInvertedColors();
Viewport getViewport();
}
|