Allow crossing anti-merdian:
Prevent Polylines from Crossing the Anti-Merdian Sample By default, polylines will render such that they take the shortest path between two points. This means that sometimes the shortest path is to cross the anti-merdian (180/-180 longitude). This is spatially accurate however sometimes it may be designered to show the map centered at (0,0) and all lines within within a single map view without crossing the anti-merdian. This sample shows how to modify polylines sby adding an additional midpoint location to each segment of the polyline which is visually accurate to keep the lines looking striaght. This is not spatially accurate.