Analyze and preview the map First optimize the basemap layers using the Analyze tool. 1. Click Analyze and notice that a dialog box opens at the bottom of the ArcMap session. This dialog box, called Prepare, contains errors, warnings, and messages. All errors must be fixed before saving an MSD (map service definition) file. 2. Right-click on any errors and examine the g y options available in the context menu to fix the error. Right-click on warnings and messages to view suggestions. 3. Click Preview. The Preview window tests the draw time of the map at various scales. An optimized map should draw in less than one second. The image type can be changed (e.g., JPEG, PNG32) and the quality of the display examined. 4. Repeat these steps for all maps containing operational layers. Optimized operational layers will be published to ArcGIS Server and served dynamically. Optimized basemap layers will be published to ArcGIS Server and cached. Error Data is not accessible. Map does not contain a spatial reference. Warning Layer is being projected on the fly. There is a missing spatial index. Message No scale dependencies set Notification of possible symbol appearance differences Common results of map performance analysis for each of the three categories Step Four Save maps and publishing layers How the map will be used and the type of data it contains will determine whether to save the map as an MSD or MXD. Save as an MSD if n The published map service will be served dynamically and only have capability requirements of mapping, KML, or Web Map Service (WMS). Save as an MXD if n The map uses layers that are not supported by the 9.3.1 optimized rendering engine, such as Maplex labels or cartographic representations, or the published map service needs to support analytic capabilities such as geoprocessing. Optimized basemap layers that will be published to ArcGIS Server and cached Dynamic services published from an MSD provide an alternative to cached map services. MSD-based dynamic maps have drawing performance equal to or better than an equivalent ArcIMS map service and provide users with the flexibility to toggle the visibility of map layers and access updates on demand. To achieve the best map rendering performance, take the time to cache map services. Saving and publishing an optimized map service from ArcMap Although the basemap will be cached, the service will be published from an MSD to support faster initial cache creation and tile updates. Use the information in this section with map service requirements to save, publish, and optionally cache operational layers. 1. In the ArcMap session that contains the optimized basemap from the previous step, click the Publish to ArcGIS Server button on the Map Service Publishing toolbar. [Note: Before publishing a map service directly from ArcMap, there must be an administrative connection to the GIS Server present in the ArcCatalog GIS Servers node.] 2. Publish the map service by completing the steps in the publishing wizard. At the end of this process, an MSD is created automatically on the GIS server and is available as a Web service through ArcGIS Server. Continued on page 48 www.esri.com Ar ArcUser Summer 2009 47 r Sum r 2009 7 ummer 20