Hi,
I have a MXD with only one layer and exposed to ArcGIS server as a map service as well as feature service.
But when I am adding the service as a map service into the ArcGIS Online Map its perfecting overlapping with my
existing data where as if I am adding it as a feature service. I have observed that there is small shift with my existing data.
Please help me to fix this issue.
small shift sounds like a datum shift... what is the magnitude of the shift?
If it is the datum shift, then the same shift should be present in both Map Service as well as Feature Service, but in my case this shift present only in Feature Service not in the Map Service
You still didn't specify the amount of the shift... if it isn't a datum shift that leave a coordinate precision issue
Is the Coordinate System of the Map (Data Frame) and that of the layer same?
Yes both are same (NAD 1983 BLM ZONE 11N)
If you are using an ArcGis Online basemap in your web map, then it's projecting your data in the Web Mercator coordinate system. I've always found that the map services I've published seem to reproject fine, but when you use a feature service it always seemed misaligned. Maybe the feature services retain the original coordinate system of the data, I don't really know. All you have to do is change the coordinate system projection to Web Mercator on the data frame in your .mxd and republish your feature service and everything should line up perfectly now.
Here's another thread that goes into more detail: https://community.esri.com/thread/121642