Constructor and Description |
---|
OverlayView(View myView,
Activity activity)
Initialize a new OverlayView
|
Modifier and Type | Method and Description |
---|---|
com.mappedin.sdk.FocusPoints |
getPoints()
Returns a focusable object's 3D points
|
void |
setPosition(Coordinate position)
Anchors the overlay to a certain position on a certain map.
|
void |
setPosition(Coordinate position,
int offsetX,
int offsetY)
Anchors the overlay to a certain position across all maps with an offset
|
void |
setPosition(Vector3 position)
Anchors the overlay to a certain position across all maps
|
void |
setPosition(Vector3 position,
int offsetX,
int offsetY)
Anchors the overlay to a certain position across all maps with an offset
|
getMap, getPosition, setPosition
public OverlayView(View myView, Activity activity)
myView
- the custom Android View, must be a RelativeLayout in order for MapView
to position the view correctlyactivity
- the activity that created this View. Need this in order to manipulate
the position on behalf of the activitypublic void setPosition(Coordinate position)
Overlay
setPosition
in class Overlay
position
- Coordinate
that has map and position information. (the position is the
midpoint of the overlay's bottom line)public void setPosition(Vector3 position)
Overlay
setPosition
in class Overlay
position
- Vector3
that has position information. (the position is the
midpoint of the overlay's bottom line)public void setPosition(Coordinate position, int offsetX, int offsetY)
position
- Vector3
that has position information. (the position is the
midpoint of the overlay's bottom line)offsetX
- offset x in dpoffsetY
- offset y in dppublic void setPosition(Vector3 position, int offsetX, int offsetY)
position
- Vector3
that has position information. (the position is the
midpoint of the overlay's bottom line)offsetX
- offset x in dpoffsetY
- offset y in dppublic com.mappedin.sdk.FocusPoints getPoints()
Focusable