Polyline or Polygone over 180

Hi all. I need to draw polyline with following coords:
lat 1, lon 170
lat 1, lon -170
Basically, its a line over map’s edge. Or polygon. Or any other object with coords crossing lon 180. Is there a way to do it without breaking line (or polygon) manually in pieces?