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
Updating a service URL creates a mismatch with AGOL item id #52
Comments
Good catch. I had not noticed this behavior. What do you think makes the most sense for how to address this? Adding a warning on layers with an |
Hmm I've had a good think about this. Here are some options; I favour option 3.
|
I like your third option. I may need to try the second option as a stop gap until I've had time to implement the additional steps required for 3. |
I believe I just experienced this problem - I updated the service URL for a layer and then again for that layer in a web map and the web map was effectively lost, replaced by another web map, probably due to the mismatch mentioned above. |
Thanks for the feedback. I've got an update that I'm putting the finishing touches on that let you edit the JSON directly. I don't think it will prevent the problem you experienced, but may be an alternative approach or at least a way to patch the webmap when it breaks. Stay tuned. |
That sounds perfect - I look forward to trying it out. |
Editing JSON is now available (#64). It still requires user interaction, so it's not as elegant as Option 3 you provided, but it may be a good stop-gap.
|
That's great, thanks for making the update. Any thoughts on when it might become available at https://ago-assistant.esri.com/, or if creating a local install might be the most prudent course to get the JSON editing functionality? |
Thanks Evan! We'll take a look. |
Just came across this now...@ecaldwell, just curious, how come the "Update the URLs of Services in a Web Map" tool only updates |
@amarinelli I'm not sure of the implications. Hopefully, most of that info would just flow through and not break anything else in a web map or application built off of the web map. I think the biggest challenge in changing those other properties is how to look them up. Right now, the app just rips and replaces the URL provided by the user. To add I think an approach worth trying first is to try and build out a new UI component that lets the user search for the service to replace it with. Then, we'll have all the other properties we need. If they choose to just do the existing option of pasting a URL directly, then we can remove any extraneous properties (and hope that doesn't break anything else). What do you think? |
@ecaldwell, thanks for the details, I now see how just the URL does not give the app enough information to find the correct |
Not sure if there has been any updates on this front, but we have a lot of users running into this scenario when copying items between environments. Explorer for ArcGIS fails to load layers that have an incorrect |
#191 is relevant |
Continuing here from #231 . There might be a problem with removing |
If you have a webmap containing an operational layer is tied to an item in ArcGIS Online, the webmap json contains an 'itemid' field for that operational layer. For example:
If you use the tools to update the layer's service URL, the item id effectively becomes mismatched. This means when you view the webmap in ArcGIS Online, the 'item details' hyperlink on the operational layer links through to the wrong item.
Further, you also begin to get strange behaviour in the webmap reflecting the item's properties - for example with editing - I think AGOL may be providing functionality on an operational layer by enumerating its properties via this 'item id'. Therefore if your operational layer links through to the wrong item id, AGOL may be assimilating incorrect item properties through to the web application to provide layer-based capabilities (eg editing).
The text was updated successfully, but these errors were encountered: