In the previous lesson, you created a detailed map of a community garden. In this lesson, you'll publish that map as a type of image called a tiled map service. This is one of the two main ways to publish geographic data to ArcGIS Online. The second is to publish feature services, which you'll do in the final lesson of the project.
Publish the tiled map service
- If necessary, open your TCG_Garden map.
- At the top of the page, click File and click Sign In.
- Sign in to your ArcGIS organizational account.
- In the File menu, click Share As and click Service.
- In the Share as Service window, confirm that the button is checked for Publish a Service and click Next.
- Name the service GardenBasemap_yourname (or something unique) and confirm that the service is being published to your organization's hosted services.
The name of your service must be unique in the organization. If you use a name that someone else in your organization has already used, you'll get an error message.
- In the left pane of the Service Editor window, click the Capabilities tab. Check the Tiled Mapping box and uncheck the Feature Access box.
The Capabilities tab has two options: Tiled Mapping and Feature Access. Tile layers are collections of spatially-adjacent images, or tiles, and are usually used as basemaps, which is what you want. Feature layers are composed of discrete elements that can be edited and symbolized.
- Click the Caching tab.
The default tiling scheme is set to ArcGIS Online/Bing Maps/Google Maps. There are 17 default zoom levels, ranging from a global scale to a city block scale. These are the standard caching levels for the largest online mapping systems. But that's not close enough of a zoom level for your garden purposes, since you want your map to zoom all the way down to the individual plot level. The four new levels you'll create are 1:500, 1:250, 1:125, and 1:62.
- Click the Advanced Settings tab.
- For Area of interest to cache, choose Current extent of the map.
You'll add four scales to the existing list.
- Above the list of scales, type 500 and click Add.
- Repeat the previous step for the following scales: 250, 125, and 62.
- Scroll to the bottom of the scales list to see the new entries.
Notice the extremely high Disk Space estimates. TB means terabytes! These numbers are so high, you would not even be allowed to proceed if they were accurate, because it would consume too many credits and take too long. You need to have the system recalculate now that additional scales have been added.
- Return to the Caching tab and click the Calculate Cache Size button to open the Calculate Cache Size window.
- Click Start.
The calculation takes a few moments. When it's finished, you can see that the total cache is estimated to only consume approximately 7 to 12 megabytes, with the largest scale (1:62) estimated at approximately 6 MB, so you're out of the danger zone.
- Close the Calculate Cache Size window and click the Item Description tab.
You need some metadata to go with your service, so people can search and browse for it.
- Fill in the Summary, Tags, and Description fields as follows:
Summary: Tequesquite Community Garden
Tags: Riverside, Tequesquite Community Garden
Description: This is large-scale basemap of the Tequesquite Community Garden at Brian Bonaminio Park in Riverside, California.
- On the Service Editor toolbar, click the Analyze button to check for problems.
The Analyze button examines your map document to see if it can be published to the server. In the Prepare box, a list of warnings and messages appears, but no errors. None of the warnings or messages will prevent you from publishing the service. More detailed explanations of what these warnings mean can be found in the ArcGIS help.
- On the Service Editor toolbar, click the Publish button.
- When the service has been published, click OK to close the Service Publishing Result dialog box.
- In the Catalog window, expand the My Hosted Services section to see your new service.
- Right-click GardenBasemap_yourname, choose View Cache Status, and wait until 100 percent of the tiles are processed.
If the Status is Processing, click Refresh Status to see the latest status. Processing may take several minutes to complete.
- Save your map.
Next, you'll go to your organization and have a look at the new published service.
Set the map service as a basemap
- If necessary, sign in to your ArcGIS organizational account.
- At the top of your organization home page, click Map.
A new map opens to a topographic view of North America.
- Click Add and choose Search for Layers.
The results list includes the file you published.
- Click the name of the service GardenBasemap_yourname. The Item Details pane opens, and click Use as Basemap.
- Close the Item Details pane and click the back arrow to get back to Contents.
The map is drawn on the screen. If you tried to zoom in to the additional zoom levels that you created for this layer, you wouldn’t see them. This occurs because the map still displays the zoom levels of the original basemap, for example, the World Topographic basemap. First you must save the basemap as a web map, close Map Viewer, and reopen the map.
- Click Save then Save As.
- For the Title and summary, type the following text:
Title:Tequesquite Community Garden
Summary: Map of the Tequesquite Community Garden in Riverside, California.
- Click Save Map.
- In the upper right corner, click New Map and choose Create New Map.
- Click New Map again, and under Recent Maps, click TCGBasemap.
When the map opens, the additional zoom levels are active. But what happens when you click a garden plot? Nothing. That's because your data is only a pretty picture right now. You have yet to publish an active operational layer of garden plots.
Your basemap is complete. In the next lesson, you'll use ArcMap to publish a separate layer of garden plots—an operational layer—that will bring this pretty picture to life.