Skip to main content

Many Missing Layer Icons

Comments

10 comments

  • Gareth Evans

    Hi Jack Charde this is a new one to me. I would have a look at the browser dev tools, there may be clues in either the console or the network tab that detail why those are failing to load. What do you see there? If at all possible I would also suggest sharing your app here if you can.

    0
  • Jack Charde

    Hey Gareth, browser dev tools reveals a number of 404 errors for the offending icons. The URL structure of those requests goes to the Portal sharing URL, as below. It's interesting because in some cases, the highly customized layer symbologies created by the client do display, while some simple ones you'd normally see in Map Viewer don't. In other cases, it's flipped.

    https://<domain>/portal/sharing/rest/content/items/<alphanumerical_item_id>/resources/legendIcons/<guide>.png?token=<token>

    I'm unable to share the apps since they're internal-only and the environment is in a transitional state, inaccessible to all but those who can access it with VDI.

    0
  • Gareth Evans

    Hm, a 404 implies the items are not there. That URL is the path to the resource folder in your VSW app. I would try:

    • -opening that URL (token and all) in a browser - same 404?
    •  re-creating the layer icons in the same app, does that change anything? 
    • testing the behaviour in a fresh app, same issue?

    A bit more info may help us figure out this issue.

    0
  • Geoffrey House

    I was having the same problem with 404 errors for layer icons in VSW, and Gareth's second suggestion (clearing layer icons followed by creating them again) fixed it so the layer icons appeared again.

    0
  • Jack Charde

    Hey Gareth,

    I decided to try the second option, as Geoffrey did, and that worked for me. I had to clear and create a few times, but eventually all the icons popped up. This is only in one app with simple icons, but I'll try this for all apps I have. Thanks for the assistance :)

    - Jack C.

    0
  • Gareth Evans

    That's definitely odd! It sounds like you might have encountered a bug.

    Could I ask for a favour? If you can reproduce this issue in an app, please consider creating a Support ticket. This will allow the team to triage it and, if needed, escalate it as a bug report.


    To provide the most helpful context, it would be great if you could reproduce the issue with your browser in developer tools mode and generate a HAR file. The HAR file will capture the network requests made during the process and help us better understand the underlying issue.

    Thanks in advance for helping us get to the bottom of this!

    0
  • Jack Charde

    Possibly! Definitely, I can check if it's reproducible. I've had a few support tickets that required a HAR file. I also have a number of apps to still set layer icons for, so I will keep an eye out for this behavior and generate a HAR. I appreciate your presence in my posts asking for help!

    0
  • Jack Charde

    I've submitted a support ticket that contains a HAR of me iteratively attempting to generate icons. It goes back and forth between a certain layer's icon being generated or failing to do so, so hopefully they can see that and identify an issue.

    0
  • Jack Charde

    To update anyone who comes across this thread, this is an existing bug (#300937: Layer Icons intermittently fail to load).

    0
  • Michelle Wang

    Thank you Jack for sharing this information!

    0

Please sign in to leave a comment.