How is data format at first parameter in geographicToWebMercator(geometry)?
The parameter is a Geometry object which can be a Point, Polyline or Polygon object.