mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-13 15:50:59 +00:00
fix drawing of windlines in Google Maps v3
This commit is contained in:
1 parent
06e9ae5c42
commit
faa1fedd84
1 file changed
+1
-1
+1
-1
@@ -229,7 +229,7 @@ public class WindLineCanvasOverlay extends FullCanvasOverlay implements TimeList
|
||||
final double weight = 1.0;
|
||||
|
||||
LatLng positionLatLng = LatLng.newInstance(p1.latDeg, p1.lngDeg);
|
||||
Point canvasPositionInPx = mapProjection.fromLatLngToContainerPixel(positionLatLng);
|
||||
Point canvasPositionInPx = mapProjection.fromLatLngToDivPixel(positionLatLng);
|
||||
|
||||
final double x1 = canvasPositionInPx.getX() - this.getWidgetPosLeft();
|
||||
final double y1 = canvasPositionInPx.getY() - this.getWidgetPosTop();
|
||||
|
||||
Reference in new issue
Block a user