OpenLayers.Control.DrawFeature Accuracy problem

OpenLayers.Control.DrawFeature Accuracy problem

When i draw a polygon using the OpenLayers.Control.DrawFeature then i export that polygon to KML using OpenLayers.Format.KML. Though, when I open it in google earth there is a big difference between the areas the polygon crosses even though the vertices of that polygon are exactly the same.

WHY? How would i go about getting an accurate output to KML?

Could it be just an issue with projection? Are your line's 2 endpoints in the "right" place on both maps? If so, maybe you should put more intermediary points along the way to "help" the line be in the right place in any projection.

Watch the video: OpenLayers Add Vector Layer to Web Map