
public class CopyrightOverlay extends Overlay
ITileSource.getCopyrightNotice() text to paint on the screen
Original source
Issue 501
Open Street Map's guidance on attribution
created on 1/2/2017.Overlay.Snappable| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alignBottom |
protected boolean |
alignRight |
(package private) DisplayMetrics |
dm |
(package private) int |
xOffset |
(package private) int |
yOffset |
mBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Constructor and Description |
|---|
CopyrightOverlay(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas,
MapView map,
boolean shadow)
Draw the overlay over the map.
|
void |
draw(Canvas canvas,
Projection pProjection) |
void |
setAlignBottom(boolean alignBottom) |
void |
setAlignRight(boolean alignRight) |
void |
setCopyrightNotice(String pCopyrightNotice) |
void |
setOffset(int x,
int y)
Sets the screen offset.
|
void |
setTextColor(int color) |
void |
setTextSize(int fontSize) |
drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabledint xOffset
int yOffset
protected boolean alignBottom
protected boolean alignRight
final DisplayMetrics dm
public CopyrightOverlay(Context context)
public void setTextSize(int fontSize)
public void setTextColor(int color)
public void setAlignBottom(boolean alignBottom)
public void setAlignRight(boolean alignRight)
public void setOffset(int x,
int y)
x - horizontal screen offset, if aligh right is set, the offset is from the right, otherwise lifty - vertical screen offset, if align bottom is set, the offset is pixels from the bottom (not the top)public void draw(Canvas canvas, MapView map, boolean shadow)
OverlayOverlay.draw(Canvas, Projection) instead (cf. MapSnapshotpublic void draw(Canvas canvas, Projection pProjection)
public void setCopyrightNotice(String pCopyrightNotice)