Assignment 3

Create your own geographic information and map it

Geographic information is the foundation of Web GIS. In this exercise, create your own dataset of geographic information following a standard data format (GeoJSON), make it available online as a web service, and display it on a web map.

Contents

Data

Your dataset will consist of point features, such as favorite restaurant locations. Decide on a topic and gather the following information about each of your locations:

For example:

Those pieces of information will be added to your features as attribute data. We will use Geojson.io to draw your features on a map, add the attribute data, and save the layer as a GeoJSON file.

The end result will be a single GeoJSON file containing:

For the photo URLs, you can host images in ArcGIS Online by clicking Content > New Item > Your device.
Add Item to ArcGIS Online How to add a photo to your ArcGIS Online content.

To get the URL, see the picture’s Item Details page shown after uploading. Click Share and choose Everyone, then a public URL will appear that you can copy and paste into your GeoJSON file later.
Item URL Share an item to get the public URL to the item.

Steps

Once you have gathered the information above, proceed with the steps below to create the GeoJSON file, add it to ArcGIS Online, and make a web map.

Part 1: Prepare the GeoJSON

In this part you will draw your own features on a map and save the layer as a GeoJSON file.

  1. Go to geojson.io and pan and center the map on a place you chose for your dataset.
  2. In the drawing tools, click Draw Point, then click a location the map corresponding to your first chosen point of interest. As you draw, the data will appear in the code pane to the right of the map in GeoJSON format.
    Drawing tools in geojson.io
  3. After drawing the first feature, edit the attributes by clicking the Table tab on the top menu.
    Table view in geojson.io
  4. Create new columns:
    • name
    • description
    • pic_url
  5. Type/paste the information you gathered into each attribute field.
  6. Save your work often in case the site crashes. Go to Save > GeoJSON and the file will download to your computer.
  7. Draw the rest of your point features, paste the attribute data, and save the final GeoJSON file.

That completes the creation of your spatial dataset.

Part 2: Create a web service

Next we will create a web service to make our data accessible to web applications. However, unlike the previous assignment on CodeSandbox, we will not do any coding to create the web service. Instead, we will use the web interface of ArcGIS Online to automatically set up a web service when we upload our GeoJSON file.

The type of item we’re creating is called a Feature layer (hosted) in ArcGIS Online.

  1. Sign into ArcGIS Online using the details provided by your instructor.
  2. In ArcGIS Online, go to your Content page to upload your GeoJSON file. Click New item > Your device and browse the files on your computer for the .geojson file you saved in the previous section.
  3. For How would you like to add this GeoJSON?, choose the option to create a hosted feature layer and proceed to Save. This will create a web service.
  4. You will be shown the Item Details page. Click the Share button and choose Everyone to make your layer public.

Your data is now stored in ArcGIS Online and the web service will provide the data to any applications that request it. Next, we will create an application to do just that.

Part 3: Create an app

Again, instead of coding an app like in the previous assignment, we will use tools in ArcGIS Online to set up an application that presents your data.

  1. From your ArcGIS Online Content page, click Create app > ArcGIS StoryMaps. The StoryMap editor opens.
  2. Under the cover info area, click + and choose Immersive > Map tour > Start with a feature layer, and choose the layer you created in the previous steps.
  3. At the bottom of the editor page, click Edit data source > Media > Image URL field and select pic_url as the field.
  4. Feel free to change other settings or add more content to your app.
  5. Once finished, click Publish and set the sharing option to Everyone.

Part 4: Metadata

  1. Go to your Content page to see that you have new three new items from this assignment, along with any images you uploaded: a StoryMap story, Feature layer (hosted), and GeoJSON. Items in Content
  2. Click on the item for your StoryMap story to see its Item Details page. The URL of the Item Details page is what you will submit for the assignment.
    ArcGIS Online Item Details Page Example of an Item Details page in ArcGIS Online.

  3. The green progress bar on the right side of the page indicates how many of the metadata fields you have completed. Complete these fields:
    • Summary - a short sentence saying what your app shows and does
    • Description - a more detailed explanation of the purpose of your app and the content of your layers
    • Thumbnail - if you are not satisfied with the default thumbnail, you can upload a screenshot or other graphic
    • Terms of Use - typically “None” in our case or a Creative Commons license such as CC BY-SA
    • Credits (Attribution) - similarly, give credit for any images or layers used in your map

From this page you can click View story to launch the app, or click Edit story to make further changes to the app.

Submit

  1. Use the short URL button on the Item Details page of your story map to copy the URL that you will submit for the assignment. It is a link to the Item Details page, not to the story map app. It should look something like https://arcg.is/123ABC.
    ArcGIS Online Item Details Page URL
  2. Open an incognito/private browser window and paste your Item Details page URL. Click View story.
  3. If you can view your app and Item Details page in the incognito window, then you are ready to submit the short URL.


↑ Top
← Back to Assignments