Get your own customer support community
 

Markers and Panning

Corrected another small issue with the markers that I thought I'd let you know about:
When firing a panning animation on the map, the markers wouldn't get updated correctly, while the well was moving.

The solution I implemented is as follows (the modifications were aplied to the AS2 1.0 version):

in the TileGrid class, I added the method:

public function getWellPosition():Point
{
return new Point(__well._x, __well._y);
}

in the Map class, I modified:

(panMap(): lines 434-435)

__startingPosition = grid.getWellPosition();
__currentPosition = __startingPosition.clone();

(animationProcess(): line 490)

onPanned(new Point(__currentPosition.x-__startingPosition.x, __currentPosition.y-__startingPosition.y));

If there's a better way of solving this, please let me know...
 
indifferent I’m undecided
Inappropriate?
1 person likes this idea

User_default_medium