Getting to Know Web GIS. Pinde Fu
Чтение книги онлайн.
Читать онлайн книгу Getting to Know Web GIS - Pinde Fu страница 19
8 Click OK to close the Configure Line Chart window
9 Click OK to apply your configuration.
10 Click a city, for example, Detroit, Michigan, to see the new pop-up (use the Search box to find Detroit and other cities if necessary). In the pop-up, to the right of the city seal or flag image, click the right arrow to see the chart you configured.You will notice that the population of Detroit has been decreasing.
11 In the Contents pane, point to the Top 50 US Cities layer, click the More Options button , and click Save Layer.This step saves the pop-up configuration to the layer item itself. When you add this layer to any web maps, the layer will carry the pop-up you defined in this section as the default.
12 Save your web map.
The new pop-up you configured does more than display raw attribute values. The pop-up leverages the URLs stored in the attributes to display and link a picture to a website that provides additional details. The pop-up also charts the numeric fields to provide a visual interpretation of population changes.
2.5 Use layers from the ArcGIS Living Atlas of the World
You don’t always have to create your own layers. You can use layers from the Living Atlas as your operational layers. In this section, you will use a layer from the Living Atlas to further display the US population change patterns.
1 On the map viewer menu bar, click the Add button , and from the list, click Browse Living Atlas Layers.In the Living Atlas pane, you will explore the extensive categories and subcategories of layers available.
2 In the Living Atlas pane, click the Filter button to see the list of categories.
3 In the Filter pane, browse the Categories, Regions, and Item Type groups. Notice the options available, and click the X button to close the Filter pane.
4 In the search box, type population growth, and press Enter.
5 In the result list, click the 2017-2022 USA Population Growth layer to see the Item Details pop-up. Click Add to map, and then close the Item Details pop-up.If you added the wrong layer, you can remove that layer by clicking the Remove button.
6 In the Contents pane, point to the 2017-2022 USA Population Growth Rate layer you just added, click the More Options button , and click Show Item Details.This action will bring up the item details about the layer. This map layer shows the estimated annual growth rate of the population in the US from 2017 to 2022 in a multiscale map by state, county, ZIP Code, tract, and block group.
7 Go back to the map viewer by clicking the corresponding browser tab. Zoom in and out of the map to examine the population change patterns. Click a state, county, zip, tract, or block group to see the information in the pre-configured pop-ups.You should see that the population change trends of the 50 major cities generally agree with the trends of their counties, zips, tracts, and block groups. Note: You may see multiple features at the location you clicked. In such cases, the pop-up will show one feature at a time. You can click the arrow in the pop-up header to navigate through the features. You may also see pop-ups of multiple layers. You can disable the pop-up for a layer in the layer’s more options context menu.
8 Zoom the map to show all the 50 cities and click Save to save your web map.The map extent saved is the default extent of your web map.
9 Click the Share button .
10 In the Share window, share your web map with everyone (public).
11 When prompted to update the sharing level of your layer in the web map to be the same as the web map, click the Update Sharing button.
You have configured your layer’s style and pop-up, and used the layer in a web map. Next, you will use this web map in your web app.
2.6 Create an Esri Story Map Journal web app
In this section, you will create an app to showcase the US population change pattern and the reasons behind it. To keep the tutorial short, a side-by-side comparison web app and a swipe comparison web app have been created for you.
In the process, you will embed two pre-created story maps into the journal.
1 In a web browser, go to the Story Maps website (https://storymaps.arcgis .com), sign in with your ArcGIS Online account, and in the top menu, click Apps.
2 Find Story Map Journal and click Build.
3 In the Welcome window, select Side Panel, and click Start.You will be directed to the map journal builder.
4 Enter your map journal title, type Story of US Population Change, and click the Continue button.The Add Home Section window appears. A Story Map Journal is made up of sections. The home section will act as the cover page of your story. Each section has a main stage and a side panel.
5 For Step 1: main stage content, set these parameters:For Content, select Web page.For Webpage URL, type https://www.census.gov/popclock, and click Configure.Leave Fill as the position choice.For Load page over a secure connection (HTTPS), unselect the check box if your current page uses HTTP; otherwise, select the check box.Click Next.
The Census webpage supports both HTTP and HTTPS. Remember that web browsers don’t allow mixed HTTP and HTTPS contents. If your current page URL uses HTTPS, the web page you want to use here must also support HTTPS and you must use the HTTPS URL. If the web page you want to use doesn’t support HTTPS, you need to reload your current page using HTTP. Refer to chapter 1, “Questions and answers,” regarding HTTP and HTTPS settings.
The main stage is configured. The builder now leads you to the side panel configuration.
1 In the side panel text area, type Population in the world and in the US are constantly changing.
2 Click Add.The home section displays.
3 Click Save (the button at the upper-right corner) to save your app.Save your app after adding each section to avoid losing your work accidently.
4 Click Add Section. In the Add Section window, select the following settings:For Section title, type Not all cities change in the same way.For Content, leave Map selected.For Map, choose Select a map.
1 In the Select a map window, select the US Population Change web map you created in section 2.5.
2 If you don’t have that web map, search in ArcGIS Online for “chapter2 population change owner:GTKWebGIS,” and then select the found web map.You can configure how you want the web map to be shown, including the location, content, pop-up, and extras. Here you will leave them as the default.
3 Click Next.
4 For Step 2: Side Panel Content, type Can you tell several cities with the most population increase and decrease? in the text area.
5 Click Add.Section 2 is added.
6 Click Add Section. In the Add Section window, set the following parameters:For Section title, type More discoveries;For Content,