[android] Make Marker anchor property private

Fixes #2652
This commit is contained in:
Leith Bade
2015-10-17 12:29:33 +11:00
parent ec95dfec16
commit f3d4c3fc1a
2 changed files with 7 additions and 7 deletions

View File

@@ -48,15 +48,15 @@ public final class Marker extends Annotation {
return (lat == otherLat && otherLng == lng);
}
public Point getAnchor() {
Point getAnchor() {
return new Point((int)anchorU, (int)anchorV);
}
public float getAnchorU() {
float getAnchorU() {
return anchorU;
}
public float getAnchorV() {
float getAnchorV() {
return anchorV;
}
@@ -188,7 +188,7 @@ public final class Marker extends Annotation {
}
private void showInfoWindow(InfoWindow iw) {
iw.open(this, getPosition(), (int) anchorU, (int) anchorV + topOffsetPixels);
iw.open(this, getPosition(), 0, topOffsetPixels);
iw.setBoundMarker(this);
infoWindowShown = true;
}

View File

@@ -12,7 +12,7 @@ public final class MarkerOptions {
marker = new Marker();
}
public MarkerOptions anchor(float u, float v) {
private MarkerOptions anchor(float u, float v) {
marker.setAnchor(u, v);
return this;
}
@@ -27,11 +27,11 @@ public final class MarkerOptions {
return this;
}
public float getAnchorU() {
private float getAnchorU() {
return marker.getAnchorU();
}
public float getAnchorV() {
private float getAnchorV() {
return marker.getAnchorV();
}