use MapPosition.copy(other)
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.oscim.core;
|
||||
|
||||
|
||||
/** A MapPosition Container. */
|
||||
public class MapPosition {
|
||||
|
||||
@@ -70,6 +69,16 @@ public class MapPosition {
|
||||
this.y = MercatorProjection.latitudeToPixelY(latitude, zoomLevel);
|
||||
}
|
||||
|
||||
public void copy(MapPosition other) {
|
||||
this.zoomLevel = other.zoomLevel;
|
||||
this.scale = other.scale;
|
||||
this.lat = other.lat;
|
||||
this.lon = other.lon;
|
||||
this.angle = other.angle;
|
||||
this.x = other.x;
|
||||
this.y = other.y;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user