Skip To Content

Publish an operational layer and configure the app

In the previous lesson, you published a garden map to the web as a basemap. In this lesson, you'll create and publish the operational layer that will make your finished app interactive.

Publish an operational layer of garden plots

  1. If necessary, open your TCG_Garden map.
  2. In the Table Of Contents, press Ctrl while clicking the layer names to highlight all of the layers except GardenPlots.
  3. Right-click any of the highlighted layers and choose Remove.

    Remove all layers

  4. Right-click GardenPlots and choose Zoom to Layer.

    Plots only

  5. Save the map as a new map document called PlotExporter.mxd.

    You now have a map of only the garden plots. You'll publish them as vector features (not tiles, as in the previous lesson), which you'll then be able to configure with pop-ups in your web map.

  6. Open the attribute table.

    Attribute table

    Notice some fields of interest: name, plot, email, and mailto (a specially formatted version of email). These will be the key elements of data in your operational layer of plot holders.


    Mailto is an expanded version of the email address that allows users to click a link in a website to send an email without first having to copy the address and open an email client.

  7. Close the attribute table.
  8. In the File menu, click Sign In and sign in using your ArcGIS organizational account.
  9. In the File menu, click Share As and click Service.
  10. Click Publish a Service and click Next.

    Publish a service

  11. Name the service TCGPlotholders_yourname and click Continue.

    Name the service

  12. Click the Capabilities tab. If necessary, uncheck the Tiled Mapping box and check the Feature Access box.

    Feature access

  13. Click the Item Description tab. Edit the summary and description as follows:

    Summary: Tequesquite Community Garden plot holders operational layer.

    Description: This is a query-only feature service of the plots and plot holders at Tequesquite Community Garden at Brian Bonaminio Park in Riverside, California.

    Item description

  14. On the Service Editor toolbar, click Analyze. If there are no high-severity errors, click Publish.

    Feature services (especially small ones such as this one) generally don't take as long to process as the tiled map service from the previous lesson. Once the system tells you it has successfully published the feature service, it's done. You can go to your ArcGIS organizational account to continue your work.

Create a web app for emailing plot holders

Next, you'll add your new feature service as an operational layer to the web map that you created earlier.

  1. If necessary, sign in to your ArcGIS organizational account.
  2. At the top of your organization home page, click Content.


  3. Click the ellipsis next to TCGBasemap and choose Open in Map Viewer.

    Open in Map Viewer

  4. Click Add and choose Search for Layers. Change In to My Content.
  5. Click Add next to TCGPlotholders_yourname.

    Search results

  6. Click Back arrow to return to Contents.
  7. In the Contents pane, point to the TCGPlotholders layer. Click the More Options button and choose Rename.

    More Options Rename

  8. Change the layer name to Garden Plots.


  9. In the Contents pane, point to the Garden Plots layer. Click the More Options button and choose Create Labels.
  10. In the Label Features pane, for Text, choose plot.
  11. Set the size to 12 points, the style to bold, and the color to forest green.

    Label features

    At the full map scale, the new labels are too big for the plot features. You'll adjust the visibility to specify at what zoom levels the labels should draw on the map.

  12. For Visible Range, click World and choose Small Building (1:800).

    Visible Range

  13. In the map, zoom in one level to display the labels.
  14. Click OK to apply the labels.

    Apply labels

    Next, you'll use your Garden Plots layer as the source for a pop-up that includes the site holder's name and an email link.

  15. In the Contents pane, point to the Garden Plots layer. Click the More Options button and choose Configure Pop-up.
  16. In the Configure Pop-up pane, clear the Pop-up Title and type Plot Number followed by a colon and a space.
  17. Click the Add Field Name button and choose plot {plot} from the list.

    Pop-up title

  18. For Display, choose A custom attribute display.

    Pop-up contents

  19. Click Configure.

    The Custom Attribute Display window allows you to format how a pop-up displays information.

  20. In the Custom Attribute Display window, type This plot is held by: (including a colon and a single space).
  21. Click the Add Field Name button and add {name}.

    Custom attribute display

  22. Skip a line and type email the plot holder.
  23. Highlight the text and click the Create Link button.
  24. For the link properties URL, type {mailto}.

    If you see a yellow exclamation point warning, ignore it.

  25. Confirm the Custom Attribute Display window looks like the following graphic. Click Set and click OK.

    Final attribute display

  26. At the bottom of the Configure Pop-up pane, click OK.
  27. Test the pop-up by clicking one of the Garden Plot features and clicking the email link (which should open to a new email message in your default email application).

    Now you’re ready to create a web app for this map. First, you’ll zoom the map to set a default map extent for the web app when it first opens. (After you've deployed the app, you can always come back into the web map and save it at a different zoom level if you want to adjust it.)

  28. Zoom in the map as far as you can, and then zoom out two levels.

    Set zoom

  29. Click Save and choose Save As. Edit the title and summary as follows:

    Title: Email the TCG Plot holder

    Summary: This is a web application for contacting plot holders of the Tequesquite Community Garden.

    Save map

  30. Click Save Map.
  31. Click the Share button.

    Share button

  32. In the Share window, check Everyone (public) to share the app with the world.

    Because the two services in this map are not yet shared publicly, you'll be prompted to update sharing properties of the layers.

    Update sharing

  33. Click Update Sharing.
  34. Click Create a Web App.

    Create a Web App

    A window of configurable templates opens.

  35. In the Create a New Web App window, click Showcase a Map.

    Showcase a Map

  36. Click Simple Map Viewer and click Create Web App.

    Create Web App

  37. Edit the title and summary as follows:

    Title: Email the TCG plot holder

    Summary: This is a web application for emailing the named plot holders at the Tequesquite Community Garden by clicking on their plots.

  38. Click Done. The Configure window opens.
  39. Click the Search tab, and uncheck the Enable search tool box.

    Enable search tool

  40. Click Save to preview your changes and test the app.
  41. At the bottom of the Configure window, click Close.

    You're taken to the web app's item details page.

  42. Email the URL of your app to your smartphone if you have one, and test it yourself.

In this lesson, you published a feature service and delivered a working map-based email application. This concludes the collection of lessons.