New guide series for arcgis.widgets module#1142
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
arcgis.widgets module
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:55Z
The |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:56Z Buttons
Now that we have created a map view, let us explore the default buttons enabled on the widget: 1. Zoom in
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. 2. Zoom out
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. 3. Reset the compass orientation
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. 4. 2D Map to 3D Scene
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. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:57Z 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. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:58Z You can also set the rotation property for the 2D mode. This can similarly be achieved by right-clicking and dragging on the map. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:58Z Your notebook can have as many of these widgets as you wish. Let's create another map widget and modify some of its properties. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:42:59Z 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 Let's geocode "Disneyland, CA" and set the map's extent to the geocoded location's extent. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:00Z ArcGIS Living Atlas of the World 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
When you create a new map or scene, you can choose which
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:
These steps are detailed in the Create a custom basemap gallery for your organization blog. After step one is done, users can move forward to :
|
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:01Z The map widget also includes support for a 3D mode! You can specify the |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:02Z Heading, tilt, and scale
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.
|
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:03Z One commonly adopted workflow for creating multiple widgets in the same notebook is to embed Python API map widgets within
|
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:03Z 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 |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:04Z 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 |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T00:43:05Z 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 |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:05Z
Workflows, data connections, outputs in the form of illustrative charts and maps, informational text about conclusions — these can all be stored and worked with in a notebook. A Jupyter Notebook can become a functional record of a workflow that can be shared with anyone. All the recipient must do is run the cells to reproduce that workflow. Jupyter Notebook encourages research that is reproducible, since not only the findings, but the code used to arrive at them, are stored.
The
The
To use the map widget, call |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:06Z Next, let's quickly explore some examples of creating a map widget in a notebook, adding layers to it, and saving it as a web map item. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:06Z You can add an Item object to a map by passing its object id to the |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:07Z You can add a number of different layer objects, such as |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:08Z Starting with the Python API version 1.3, you can save the map widget as a web map in your |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:08Z You can use this web map back in the notebook or in any ArcGIS app capable of rendering web maps. To learn how you can read this web map using the Python API, refer to the other parts of this notebook guide series. |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:09Z Any map widget instance is of the |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T17:38:10Z In Part 1 of this guide series, we have explored the basic concepts and uses of web maps, the correlation between |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T18:03:31Z To use the map widget, call |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T18:03:31Z You can add a number of different layer objects, such as |
|
View / edit / reply to this conversation on ReviewNB BP-Ent commented on 2022-01-15T18:03:33Z Similar to |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:43Z Please lowercase the filename |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:44Z This picture does not show up, appears broken. Can you check? CMPeng commented on 2022-01-21T05:02:25Z Hi @AtmaMani, this is a gif dynamically showing the map being dragged and panned, and looks OK on my local computer though. Let me upload it once again and see if works. |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:45Z "Now let's increase the difficulty and sync the display of 4 maps:" -> Now let's sync the display of 4 maps: |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:46Z Can we add a GIF animation? We could also replace the static screenshot with the GIF CMPeng commented on 2022-01-21T05:03:52Z Atma, per our previous discussion, the side_by_side2 display will be a gif, and the other two will stay static. Do you want me to also change this one to a gif? |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:47Z Change title to "Part 1 - Introduction to using the map widget". Please rename the file accordingly. Once we author the revised guide for the mapping module, we will figure how to merge the two doc series Let us remove the byline "Guide to Mapping and Visualization.." from this and all other notebooks in this series |
|
View / edit / reply to this conversation on ReviewNB AtmaMani commented on 2022-01-20T18:33:48Z In this and all other notebooks, let us use "Clonclusion" in singular for the paragraph title. "the correlation between "walked through some starting examples of " -> starter examples... |
|
Please implement Breck's suggestion here View entire conversation on ReviewNB |
|
Good job! View entire conversation on ReviewNB |
| @@ -0,0 +1,357 @@ | |||
| { | |||
There was a problem hiding this comment.
Since the JupyterLab part is not ready yet, let us rename part 7 to part 6, so it flows with the rest of the parts. Please rename title and filename accordingly
Reply via ReviewNB
|
For now, let us keep these files in the original folder numbered 10. The new site theme would allow us to group these separately from the rest of the mapping guides. We can do that in a future release |
|
Hi @AtmaMani, this is a gif dynamically showing the map being dragged and panned, and looks OK on my local computer though. Let me upload it once again and see if works. View entire conversation on ReviewNB |
|
Atma, per our previous discussion, the side_by_side2 display will be a gif, and the other two will stay static. Do you want me to also change this one to a gif? View entire conversation on ReviewNB |
Thanks Atma!! I have addressed your comments and fixed the broken gif animations. Please check the latest commits! |
|
@CMPeng one more (hopefully final) set of edits: Can you move the image, gif files (only the couple of files in this PR, not the ones already embedded) to https://github.com/Esri/arcgis-python-api/tree/master/static folder and update your links? Images need to be either base64 embedded or in the static folder for it to work reliably in old and new build systems. |
Sure Atma! Please see the latest set of changed files. I have moved the gif and other images over to the static img folder, and corrected the reference accordingly. Thanks! |
All chapters required by https://github.com/ArcGIS/geosaurus/issues/6846 except for Part 6 are listed here. Part 6 (JupyterLab) does not render maps as expected and hence not to be come with this release.
Notebooks are placed inside
10-mapping-and-visualization-altfolder. Please feel free to specify a better name if needed. @AtmaMani@BP-Ent Can you please do us a big favor by reviewing this guide series? Many thanks!!