Using cosineAndSine to convert to WebMercator.

This addresses #2110 by using a higher precision implementation of the cosine/sine algorithm.