Where are you publishing your feature service from? If you are publishing from ArcMap, you have to set the
data frame of the mxd to web mercator before you publish. Here is an example below. Your local coordinate
system and transformation will be different than mine, but this gives you the steps