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

FeatureLayerCollection.manager.create_view() does not correctly handle the view_layers parameter(?) #1743

Closed
avstjohn opened this issue Jan 17, 2024 · 3 comments
Labels

Comments

@avstjohn
Copy link

avstjohn commented Jan 17, 2024

I am developing scripts to manage views in Online Portal.
I use the create_view() method and give it a value for the view_layers parameter.
image

It creates the view, but hits an error when I try to open the view in the Map Viewer or view the Data/Fields on the item page.
image

Note that the URL is looking for layer ID 3 in the view that I just created "Sanitary_Pipes_View", but the ID=3 refers to layer ID in the parent hosted feature layer, from which I created the view
image

  • OS: Windows 11
  • Browser: Chrome
  • Python API Version: 2.2.0.1
@avstjohn avstjohn added the bug label Jan 17, 2024
@avstjohn
Copy link
Author

Also, it looks like the view automatically inherits the tags of the parent hosted feature layer, but they are not fully parsed:
image

@nanaeaubry
Copy link
Contributor

@avstjohn
Are you able to open the layer in the original parent? I am unable to reproduce this so I wonder if it is specific to the layer.

Does this also occur for your first view you create: "Sanitary Structures View"?

@nanaeaubry
Copy link
Contributor

This has been fixed for version 2.3.0

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

No branches or pull requests

2 participants