Closed GoogleCodeExporter closed 8 years ago
Hi,
It is an issue that happens to me also with rotation, both with the old
MyLocationOverlay class and with the new MyLocationNewOverlay class.
I think the problem exists in method drawMyLocation at the 2
mDirectionRotater.postScale calls for arrow and person icons.
What's their use?
If I comment the 2 postScale calls, the icon size change vanishes.
Regards.
Original comment by devemu...@gmail.com
on 5 Jul 2013 at 8:21
Thanks for pointing that postscale out as the culprit. Those scale calls are
supposed to keep the icon unscaled during zoom operations. We need to fix this.
Original comment by kurtzm...@gmail.com
on 5 Jul 2013 at 1:32
When dealing with rotation, the way to get the *real* scale value is:
// Calculate real scale including accounting for rotation
float scaleX = (float) Math.sqrt(mMatrixValues[Matrix.MSCALE_X]
* mMatrixValues[Matrix.MSCALE_X] + mMatrixValues[Matrix.MSKEW_Y]
* mMatrixValues[Matrix.MSKEW_Y]);
float scaleY = (float) Math.sqrt(mMatrixValues[Matrix.MSCALE_Y]
* mMatrixValues[Matrix.MSCALE_Y] + mMatrixValues[Matrix.MSKEW_X]
* mMatrixValues[Matrix.MSKEW_X]);
Original comment by kurtzm...@gmail.com
on 12 Jul 2013 at 8:34
This issue was updated by revision r1252.
Prevent location icon from scaling incorrectly with rotation.
Original comment by kurtzm...@gmail.com
on 12 Jul 2013 at 8:38
Please test and report back!
Original comment by kurtzm...@gmail.com
on 12 Jul 2013 at 8:38
Yes now it seems to work correctly.
Regards.
Original comment by devemu...@gmail.com
on 13 Jul 2013 at 12:23
This has been released in 4.0.
Original comment by kurtzm...@gmail.com
on 25 Oct 2013 at 1:50
Original issue reported on code.google.com by
xealst...@gmail.com
on 5 Jul 2013 at 7:18