Zoom to Dynamic Service (Projected State Plane) extents overlayed on NatGeo Basemap

Discussion created by eitdhc on Apr 18, 2013
Latest reply on Apr 19, 2013 by jskinner-esristaff
I am overlaying a dynamic service (WKID:3566) on the National Geographic basemap and would like to auto-zoom to the extents of the dynamic service. If the dynamic service was in WGS84 and not State Plane, the esri.geometry.geographicToWebMercator() function would get me the correct extent.  However, since the dynamic service is in STP, I need other ideas.  Some examples of mixing the traditional "basemaps" with real-world data in local systems (STP) and how to manage Query/Find results whose geometry spatialreference is based on the underlying service (STP) would be helpful and may guide my solution.  Maybe it isn't possible, be nice to know before I spend another day hacking code that ultimately doesn't yield a good result.