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

Basemap not correctly copied to Site clone #142

Open
dbouwman opened this issue Jan 10, 2024 · 1 comment
Open

Basemap not correctly copied to Site clone #142

dbouwman opened this issue Jan 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dbouwman
Copy link
Member

Describe the bug
When cloning a Site, the basemap information is not copied to the correct node in the json structure. This results in a number of off behaviors in the cloned site.

** Steps To Reproduce this behavior**

  1. Clone a Site
  2. View the data.json of the original site and the clone
    You'll see that the original has the baseMapLayers and title properties nested under data.values.map.basemaps.primary
    image

But the clone has those directly under data.values.map
image

The issue is

site_data["values"]["map"] = self._gis.properties["defaultBasemap"]

Expected behavior
basemap information should be located at data.values.map.basemaps.primary

Observed behavior
basemap information is located at data.values.map

Screenshots
n/a

Additional context
In order to address asap and not wait for a python api release, the Hub application will add code to remedy this during the load cycle, but the underlying issue should be addressed asap so it's in the next release

@dbouwman dbouwman added the bug Something isn't working label Jan 10, 2024
@dbouwman
Copy link
Member Author

Hub application has added logic to handle the malformed basemap information. Should be released Jan 16th 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant