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

Image shows in info window in when editing map but not in public version if any custom code is added #15739

Open
mrjohnc opened this issue Jul 9, 2020 · 2 comments

Comments

@mrjohnc
Copy link

mrjohnc commented Jul 9, 2020

Context

I've added an image to the header of the info window, it fetches individual images from Wikimedia Commons, however the image only appear when I'm editing the map, not in the publicly available version

https://mrjohncummings.carto.com/viz/82360754-cd77-4fa3-8a53-52b11827df05/public_map

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue

  1. Add image to info window header on map
    Screenshot 2020-07-09 at 18 33 41

  2. Look at public version of map (no image)
    Screenshot 2020-07-09 at 18 33 53

Current Result

Please describe here below the current result you got

In the public version of the map the image does no appear in the info window

Expected result

Please describe here below what should be the expected behaviour

The image should appear like it does on the map when I'm editing it

Browser and version

What internet browser (Chrome, Firefox, etc) and version was you using and version
Chrome Version 83.0.4103.119

.carto file

Additional info

@mrjohnc
Copy link
Author

mrjohnc commented Jul 9, 2020

It seems like adding any custom code breaks the header image for the public version of the map

@mrjohnc mrjohnc changed the title Image shows in info window in when editing map but not in public version Image shows in info window in when editing map but not in public version if any custom code is added Jul 9, 2020
@navino-evans
Copy link

Just to clarify, making any changes at all to the HTML of the Info Window causes the issue described.
Even if you undo the change and return it to the default HTML for the "image header" layout, the problem persists.
To get back to a working image header, you need to click "toggle fields and titles" to clear all the custom HTML, then re-select the "image header" layout from the dropdown.

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

No branches or pull requests

2 participants