Zoom to Layer with different spatialReferences

Discussion created by tintiifax on Sep 29, 2011
Latest reply on Sep 29, 2011 by DSwingley-esristaff

My problem is to make a zoomTo Button in Javascript.
I have de basemap with a  spatialreference wkid:102100 and severel Layers on an ArcGis Server 10 with different spatialreferences.

i can make the basemap and add the layer by map.addLayer(layer) and they where shown on the map.
when i try to zoom to the layer by map.setExtent(layer.fullExtent) i have problems with different wkids

how can i convert the differen wkid to zoom to the selected layer?