So i tried out the tile service layer example and it works great for WGS84. I decided i wanted to hit the services that are being maintained in the arcgis online, the World_Imagery service to be exact. It's in web mercator(auxillary sphere) I modified the code in the example to update the level of detail and coordinate system to be used but i just can't get the service to line up with my data, it's close but the imagery is shifted north. Both my data, map document and service are all in the same web mercator auxillary sphere coordinate system. If i add the data to Arcmap then add the World_Imagery service to arcmap it lines up correctly so the problem i'm guessing is with the custom tile service layer.
Does anyone have experience with the ESRI sample and also modifying it to hit the World_Imagery service? If so i could use a little help.