Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using and updating GIS content sample notebook revamped according to the new map widget #2160

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tarunkukreja003
Copy link
Collaborator

Using and updating GIS content sample notebook is now revamped according to the new map widget

Major changes include:

  1. The JSON of the web scene or web map is not changed anymore, instead, we use property setters to update the web maps and web scenes
  2. Properties and methods updated according to the new map widget

NOTE
PLEASE TEST AGAINST THIS PR https://github.com/ArcGIS/geoserpent/pull/190, THE NOTEBOOK CELLS WILL ONLY WORK IF THE CHANGES FROM THIS PR IS PULLED IN

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:01Z
----------------------------------------------------------------

  • If you want to de-capitalize ArcGIS in the second sentence then I would suggest:

'The arcgis package includes several classes to make use of this content'

  • Also it was correct with this content. If you want to use 'these' then make content plural: these contents

  • Unnecessary 'the' added before them. Please remove.

Suggested full second sentence:

"The arcgis package includes several classes to make use of this content, publish new items and update them when needed."


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:02Z
----------------------------------------------------------------

Not sure if this is just in notebook reviewer but the table of contents looks super spread out


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:03Z
----------------------------------------------------------------

This seems to not be needed


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:04Z
----------------------------------------------------------------

If you are going to add this logic, add a description of what you are doing. This is not intuitive to new users


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:04Z
----------------------------------------------------------------

Map(item=wm_item)

The first parameter is location. Although there is a check in place let's promote best practice in samples


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:05Z
----------------------------------------------------------------

Add back this comment above this cell:

The web map was sucessfully overwritten with correct operational layers. You can interact with the widget and zoom into the USA to observe the locations of capitals.

Then inside the cell add back this comment:

# Let's clean it up so we can always run this notebook again

This way users know why we are deleting everything


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:06Z
----------------------------------------------------------------

Why don't you delete the layers instead? I don't think we want to encourage overwriting the layers property since this is not a documented workflow.

Use: map.content.delete(<layer_index>)


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:07Z
----------------------------------------------------------------

Layers property should not be set


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:08Z
----------------------------------------------------------------

There is a property for Scene called basemaps3d . It would be cool to use one of those since scene is trying to promote using them.


Copy link

review-notebook-app bot commented Nov 13, 2024

View / edit / reply to this conversation on ReviewNB

nanaeaubry commented on 2024-11-13T08:56:09Z
----------------------------------------------------------------

Add a comment how using the save method will create a new Scene or Map in portal whereas the update method we used above will update the changes to the existing Map.


Copy link
Contributor

@nanaeaubry nanaeaubry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments in the notebook reviewer. Good start with this! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants