fix drawing of windlines in Google Maps v3

This commit is contained in:
Christopher Ronnewinkel (D036654) committed 2014-03-12 13:29:38 +01:00
1 parent 06e9ae5c42
commit faa1fedd84
1 file changed
+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();