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...
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...
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I'm sorry, the last line should be:
onPanned(new Point(__startingPosition.x-__currentPosition.x, __startingPosition.y-__currentPosition.y));
Loading Profile...


