Closed GoogleCodeExporter closed 9 years ago
See also issue 239 and issue 285.
Original comment by neilboyd
on 21 May 2012 at 8:04
Actually there is a slightly smarter fix for this. Firstly the problem can also
effect the latitudinal part of the coordinate as well and secondly in some
circumstances icons got moved to the right in a non-smooth way when scrolling.
This approach tries to keep the icon on the closest possible position to the
map centre:
public Point toMapPixels(final IGeoPoint in, final Point reuse) {
final Point out = reuse != null ? reuse : new Point();
TileSystem.LatLongToPixelXY(in.getLatitudeE6() / 1E6, in.getLongitudeE6() / 1E6,
getZoomLevel(), out);
out.offset(offsetX, offsetY);
if (Math.abs(out.x - getScrollX()) > Math.abs(out.x
- TileSystem.MapSize(getZoomLevel()) - getScrollX())) {
out.x -= TileSystem.MapSize(getZoomLevel());
}
if (Math.abs(out.y - getScrollY()) > Math.abs(out.y
- TileSystem.MapSize(getZoomLevel()) - getScrollY())) {
out.y -= TileSystem.MapSize(getZoomLevel());
}
return out;
}
Original comment by osei...@gmail.com
on 23 May 2012 at 7:22
Issue 285 has been merged into this issue.
Original comment by neilboyd
on 24 May 2012 at 7:38
Issue 239 has been merged into this issue.
Original comment by neilboyd
on 24 May 2012 at 7:38
Thanks for the patch.
Original comment by neilboyd
on 24 May 2012 at 7:39
This issue was closed by revision r1101.
Original comment by neilboyd
on 24 May 2012 at 7:51
[deleted comment]
Thanks for reopening this as items east of dateline still disappear when map
center is west of dateline.
link to issue 364
Original comment by manim...@gmail.com
on 24 Aug 2012 at 5:36
A small extension of my previous patch will fix this also for objects east of
the date line.
Original comment by osei...@gmail.com
on 10 Oct 2012 at 8:02
Attachments:
The last path was applied in revision 1363.
Original comment by neilboyd
on 10 Oct 2013 at 6:57
Original issue reported on code.google.com by
osei...@gmail.com
on 20 May 2012 at 10:34Attachments: