Make AGS layers work in the Map Viewer