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

getItemInfo demo fails via running out of memory #971

Open
MikeTschudi opened this issue Dec 9, 2022 · 2 comments
Open

getItemInfo demo fails via running out of memory #971

MikeTschudi opened this issue Dec 9, 2022 · 2 comments

Comments

@MikeTschudi
Copy link
Member

MikeTschudi commented Dec 9, 2022

Sign Management item 39c90e72fe3b40c3b42d3508241c491b generates over 910,000 lines of HTML, and assigning these lines to an element in the webpage is what appears to be killing the app.

Almost all of these lines (909,000) are in a single <textarea> representing the data section.

@MikeTschudi
Copy link
Member Author

@chris-fox, if I stub out the drawingInfo property, I can get the data section HTML down to 1000 lines of HTML, and the browser can handle that. Is that an acceptable workaround?

drawingInfo sections will be replaced with the string "...", as shown below:

          "1": {
            "id": "18357aee71a-layer-10",
            "title": "Signs",
            "url": "{{9a53ee4fe0e940b9a99e8433a45e226b.layer0.url}}",
            "itemId": "{{9a53ee4fe0e940b9a99e8433a45e226b.layer0.itemId}}",
            "layerType": "ArcGISFeatureLayer",
            "featureEffect": null,
            "layerDefinition": {
              "definitionExpression": "(retired = 'No') OR (retired IS NULL)",
              "featureReduction": null,
              "drawingInfo": "..."
            },
            "formInfo": {
              "formElements": {

@chris-fox
Copy link
Collaborator

@MikeTschudi, no concerns from me.

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

No branches or pull requests

2 participants