Skip to content

Commit d220726

Browse files
committed
addressing Brecks comments
1 parent 27ac7e7 commit d220726

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

guide/10-mapping-and-visualization-alt/Part2_Navigating_the_map_widget.ipynb

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
"metadata": {},
2525
"source": [
2626
"## Using the map widget\n",
27-
"Show creating a map widget and talk about the buttons and features\n",
2827
"\n",
29-
"The `GIS` object includes a map widget for displaying geographic locations, visualizing GIS content, as well as the results of your analysis. To use the map widget, call `gis.map()` and assign it to a variable, that you can then query to bring up the widget in the notebook:"
28+
"The `GIS` object includes a map widget for displaying geographic locations, visualizing GIS content, and displaying the results of your analysis. To use the map widget, call `gis.map()` and assign it to a variable that you will then be able to query to bring up the widget in the notebook:"
3029
]
3130
},
3231
{
@@ -73,23 +72,23 @@
7372
"source": [
7473
"### Buttons\n",
7574
"\n",
76-
"Now we have created a map view, let us explore the default buttons enabled on the widget:\n",
75+
"Now that we have created a map view, let us explore the default buttons enabled on the widget:\n",
7776
"\n",
7877
"#### 1. Zoom in\n",
7978
"\n",
80-
"Click the \"+\" sign shown on the top left corner of the widget (marked as button #1 in previous map output) to zoom into details of the map. Users can either manually zoom into a desired level of details, or set the zoom levels to an assigned number (which is to be introduced in the next section).\n",
79+
"Click the \"+\" sign shown on the top left corner of the widget (marked as button #1 in previous map output) to zoom into details of the map. Users can either manually zoom into a desired level of detail or set the zoom levels to an assigned number, which we will elaborate on in the next section.\n",
8180
"\n",
8281
"#### 2. Zoom out\n",
8382
"\n",
84-
"Click the \"-\" sign shown on the top left corner of the widget (marked as button #2 in previous map output) to zoom out to a rough display of the map. Users can either manually zoom out to a desired level of details, or set the zoom levels to an assigned number (which is to be introduced in the next section).\n",
83+
"Click the \"-\" sign shown on the top left corner of the widget (marked as button #2 in previous map output) to zoom out to a rough display of the map. Users can either manually zoom out to a desired level of details, or set the zoom levels to an assigned number, which we will elaborate on in the next section.\n",
8584
"\n",
8685
"#### 3. Reset the compass orientation\n",
8786
"\n",
88-
"Click the compass sign (marked as button #3 in the previous map display) to switch the map's heading to 0.0 (north) in relation to current device, and click one more time to switch back to the absolute 0.0 north.\n",
87+
"Click the compass sign (marked as button #3 in the previous map display) to switch the map's heading to 0.0 (north) in relation to the current device, and click again to switch back to the absolute 0.0 north.\n",
8988
"\n",
9089
"#### 4. 2D Map to 3D Scene\n",
9190
"\n",
92-
"Click the \"Map to Scene\" button (marked as #4 in the previous map display) to switch the current view from 2D Map to 3D Scene, and click the same button one more time to switch back."
91+
"Click the \"Map to Scene\" button (marked as #4 in the previous map display) to switch the current view from a 2D Map to a 3D Scene. Click the button again to switch back."
9392
]
9493
},
9594
{
@@ -105,8 +104,7 @@
105104
"source": [
106105
"### Operations of the map widget\n",
107106
"\n",
108-
"The map widget has several properties that you can query and set, such as its zoom level, basemap, height, extent, mode, heading, rotation, tilt, scale etc.\n",
109-
"(when discussing, start off by asking user to zoom and pan to some area of interest and show the values of these properties. Then show how you can drive the widget through code by assigning values to the properties)\n",
107+
"The map widget has several properties that you can query and set, such as its zoom level, basemap, height, extent, mode, heading, rotation, tilt, scale, etc.\n",
110108
"\n",
111109
"#### Zoom Level and Rotation\n"
112110
]
@@ -176,7 +174,7 @@
176174
"cell_type": "markdown",
177175
"metadata": {},
178176
"source": [
179-
"You can also set rotation in 2D mode. This can also be achieved by right-clicking and dragging on the map."
177+
"You can also set the rotation property for the 2D mode. This can similarly be achieved by right-clicking and dragging on the map."
180178
]
181179
},
182180
{
@@ -192,7 +190,7 @@
192190
"cell_type": "markdown",
193191
"metadata": {},
194192
"source": [
195-
"Your notebook can have as many of these widgets as you wish. Let us create another map widget and modify some of its properties."
193+
"Your notebook can have as many of these widgets as you wish. Let's create another map widget and modify some of its properties."
196194
]
197195
},
198196
{
@@ -274,9 +272,9 @@
274272
"source": [
275273
"#### Extent\n",
276274
"\n",
277-
"You can use geocoding to get the coordinates of place names and drive the widget. Geocoding converts place names to coordinates and can be used using `arcgis.geocoding.geocode()` function.\n",
275+
"You can use `geocoding` to get the coordinates of different places and use those coordinates to drive the extent property. `Geocoding` converts place names to coordinates and can be implemented by using the `arcgis.geocoding.geocode()` function.\n",
278276
"\n",
279-
"Let us geocode \"Disneyland, CA\" and set the map's extent to the geocoded location's extent."
277+
"Let's geocode \"Disneyland, CA\" and set the map's extent to the geocoded location's extent:"
280278
]
281279
},
282280
{
@@ -295,16 +293,16 @@
295293
"source": [
296294
"#### Basemap\n",
297295
"\n",
298-
"<a href=\"https://livingatlas.arcgis.com/en/\">ArcGIS Living Atlas of the World</a> is an evolving collection of authoritative, curated, ready-to-use global geographic information from Esri, and the GIS user community, one of whose most used types are basemaps. `Basemap` are layers on your map over which all other operational layers that you add are displayed. Basemaps typically span the full extent of the world and provide context to your `GIS` layers. It helps viewers understand where each feature is located as they pan and zoom to various extents.\n",
296+
"<a href=\"https://livingatlas.arcgis.com/en/\">ArcGIS Living Atlas of the World</a> is an evolving collection of authoritative, curated, ready-to-use global geographic information from Esri and the GIS user community. One of the most used types of content from the Living Atlas is basemaps. Basemaps are layers on your map over which all other operational layers that you add are displayed. Basemaps typically span the full extent of the world and provide context to your `GIS` layers. It helps viewers understand where each feature is located as they pan and zoom to various extents.\n",
299297
"\n",
300-
"When you create a new map or scene, you can choose which `basemap` you want from the basemap gallery in the Map Viewer. By default, the basemap gallery for your organization is a pre-configured collection from Esri using the Living Atlas. There are many more Living Atlas basemaps to choose from, and you can create your own custom basemap gallery with the ones you like. Here’s <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/living-atlas-custom-basemap-gallery/\">how</a>.\n",
298+
"When you create a new map or scene, you can choose which basemap you want from the basemap gallery in the Map Viewer. By default, the basemap gallery for your organization is a pre-configured collection from Esri using the Living Atlas. There are many more Living Atlas basemaps to choose from, and you can create your own custom basemap gallery with the ones you like. Learn more on this <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/living-atlas-custom-basemap-gallery/\">here</a>.\n",
301299
"\n",
302-
"As an administrator of your organization, you can change which basemaps your organization uses by creating a custom basemap gallery. The custom gallery can include a combination of your own basemaps, plus Living Atlas basemaps. In a nutshell, the steps to create a custom Basemap Gallery are:\n",
300+
"As an administrator of your organization, you can change which basemaps your organization uses by creating a custom basemap gallery. The custom gallery can include a combination of your own basemaps, plus Living Atlas basemaps. In a nutshell, the steps to create a custom basemap gallery are as follows: \n",
303301
" - Createa group for your custom basemap gallery.\n",
304302
" - Add maps you want to use as basemaps to the group.\n",
305-
" - Set the group as your organization’s basemap gallery. \n",
303+
" - Set the group as your organization’s basemap gallery.\n",
306304
" \n",
307-
"These steps are detailed in <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/custom-basemap-gallery/\">Create a custom basemap gallery for your organization</a>. After step one is done, users can move forward to :\n",
305+
"These steps are detailed in the <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/custom-basemap-gallery/\">Create a custom basemap gallery for your organization</a> blog. After step one is done, users can move forward to :\n",
308306
" - <a href=\"https://doc.arcgis.com/en/arcgis-online/share-maps/create-groups.htm\">create a custom basemap group</a>\n",
309307
" - <a href=\"https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/living-atlas-custom-basemap-gallery/\">adding maps from the Living Atlas to populate your custom gallery</a>\n",
310308
"\n",
@@ -391,7 +389,7 @@
391389
"source": [
392390
"#### Mode\n",
393391
"\n",
394-
"The map widget also includes support for 3D mode! You can specify the `mode` parameter through `gis.map(mode=\"foo\")`, or by setting the mode property of any initiated map object. Run the below cell:"
392+
"The map widget also includes support for a 3D mode! You can specify the `mode` parameter either through `gis.map(mode=\"foo\")` or by setting the mode property of any initiated map object. Run the following cell:"
395393
]
396394
},
397395
{
@@ -433,9 +431,9 @@
433431
"source": [
434432
"#### Heading, tilt and scale\n",
435433
"\n",
436-
"Just like 2D mode, you can pan by click-and-drag with the left mouse button, and you can zoom with the mouse wheel. In 3D mode, click-and-drag with the right mouse button modifies the tilt field and the heading field.\n",
434+
"Just like the 2D mode, you can pan by clicking-and-dragging with the left mouse button, and you can zoom with the mouse wheel. In 3D mode, clicking-and-dragging with the right mouse button modifies the tilt field and the heading field.\n",
437435
"\n",
438-
"`tilt` is a number from 0-90: 0 represents a top-down 'birds-eye' view, while 90 represents being completely parallel to the ground, facing the horizon."
436+
"`tilt` is a number from 0-90, with 0 representing a top-down 'birds-eye' view, while 90 represents being completely parallel to the ground, facing the horizon."
439437
]
440438
},
441439
{
@@ -518,7 +516,7 @@
518516
"\n",
519517
"#### Stacking maps using HBox and VBox\n",
520518
"\n",
521-
"One commonly adopted workflow in order to create multiple widgets in a same notebook, is to embed Python API map widgets within `HBox` and `VBox`. First, let us walk through an example of showing Landsat imageries of two different dates side by side using an `HBox` structure here:"
519+
"One commonly adopted workflow for creating multiple widgets in the same notebook is to embed Python API map widgets within `HBox` and `VBox`. First, let's walk through an example of displaying Landsat imagery of two different dates side by side using an `HBox` structure:"
522520
]
523521
},
524522
{
@@ -860,7 +858,7 @@
860858
"source": [
861859
"#### Synchronizing nav between multiple widgets\n",
862860
"\n",
863-
"The side-by-side display of two maps is great for users to explore the difference between both maps. However, if one map gets dragged or panned, the other one is not following the movements automatically. The methods `sync_navigation` and `unsync_navigation` are introduced to handle this issue. we can now modify the previous example to have the maps in sync."
861+
"A side-by-side display of two maps is great for users wanting to explore the differences between two maps. However, if one map gets dragged or panned, the other map is not following the movements automatically. The methods `sync_navigation` and `unsync_navigation` can be introduced to resolve this. With these methods, we can modify the previous example to have the maps in sync."
864862
]
865863
},
866864
{
@@ -1235,7 +1233,7 @@
12351233
"cell_type": "markdown",
12361234
"metadata": {},
12371235
"source": [
1238-
"Dragging and panning onto any of these 4 maps will lead to synchronous movements of other three maps, which means that the map center, zoom levels, and extent of these maps will always stay the same - this is one of the biggest advantages of `sync_navigation()`."
1236+
"Dragging and panning onto any of these 4 maps will lead to synchronous movements of the other three maps, which means that the map center, zoom levels, and extent of these maps will always stay the same. This is one of the biggest advantages of `sync_navigation()`."
12391237
]
12401238
},
12411239
{
@@ -1244,15 +1242,15 @@
12441242
"source": [
12451243
"## Conclusion\n",
12461244
"\n",
1247-
"In Part 2 of the guide series, we have talked about the usage of the map widget, including buttons, features, and properties, and have seen three examples of displaying multiple map widgets in a group view using HBox and VBox. In the next chapter, we will discuss how to visualize spatial data onto the map widget.\n",
1245+
"In Part 2 of the guide series, we have talked about the use of map widgets, including buttons, features, and properties, and have seen three examples of displaying multiple map widgets in a group view using `HBox` and `VBox`. In the next chapter, we will discuss how to visualize spatial data on the map widget.\n",
12481246
"\n",
12491247
"<a href=\"#Part-2---Navigating-the-map-widget\">Back to Top</a>"
12501248
]
12511249
}
12521250
],
12531251
"metadata": {
12541252
"kernelspec": {
1255-
"display_name": "Python 3",
1253+
"display_name": "Python 3 (ipykernel)",
12561254
"language": "python",
12571255
"name": "python3"
12581256
},
@@ -1266,7 +1264,7 @@
12661264
"name": "python",
12671265
"nbconvert_exporter": "python",
12681266
"pygments_lexer": "ipython3",
1269-
"version": "3.7.10"
1267+
"version": "3.7.11"
12701268
},
12711269
"toc": {
12721270
"base_numbering": 1,

0 commit comments

Comments
 (0)