Algorithm/Javascript code for esri.geometry.toScreenGeometry()

Discussion created by niranjan_borawake on Mar 14, 2013
Latest reply on Mar 15, 2013 by niranjan_borawake

Can some one please share or point me to an algorithm and/or javascript code (actual implementation) of the ArcGIS' esri.geometry.toScreenGeometry(extent, width, height, screenGeometry) geometry service. Details at

geometry service details.

I have to get screen geometries for about 15,000-20,000 points. Calling above geometry service in loop takes substatial amount of time around 5 secs for 15,000 points.

I am looking for a javascript function which would take input as above service and return me screen geometyr object.

I have already got a javascript function for this esri.geometry.geographicToWebMercator(geometry) service.