-
AuthorPosts
-
October 24, 2024 at 8:00 am #1469734
Dear Support Team
for a website I had to integrate OpenStreetMap via i-frame for GDPR reasons (otherwise the cookie banner would not work) (and no longer via the Leaflet plugin – which is not recognized by the cookie banner).
For this purpose, I have now integrated the i-frame on the test page https://emmerams-muehle.de/kontakt-2/ (the map is at the bottom). And although I have entered width=100% in the script of the i-frame, the map is not displayed over the full screen.
(For comparison, the previous integration via Leaflet: https://emmerams-muehle.de/kontakt/ >Here the map is displayed correctly over the entire width of the screen).
What can I do so that the i-frame element also appears across the entire width?Best regards, Diana
Translated with DeepL.com (free version)
October 24, 2024 at 8:48 am #1469740Hey!
Thank you for the inquiry.
You may need to place the map inside a Color Section element, then set the width of the element container to 100%. Please check the documentation below for more info:
// https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width
Regards,
IsmaelOctober 24, 2024 at 9:00 am #1469741Dear Ismael
Thank you very much for the lightning-fast reply :)
I have integrated the script as indicated and YES the map is now displayed over the entire width of the screen.
But there is still a white border at the top and bottom – although margin and padding are set to 0.
Could you help me further so that I can remove this border?Best regards Diana
October 24, 2024 at 5:20 pm #1469776Hi,
Please try the following in Quick CSS under Enfold->General Styling:
#anfahrt { border-color: transparent; }
Best regards,
RikardOctober 25, 2024 at 5:02 am #1469802Dear Rikard,
unfortunately the script does not work. First I tried it with the specified section #approach. But my problem with the white borders refers to the section with the OpenStreetMap > so I changed the name #section-container-width in the second attempt, but unfortunately the white borders still exist.
What else can I do to remove the white borders at the top and bottom of the map?
Best regards, Diana
October 25, 2024 at 6:52 am #1469817Hi,
Thank you for the update.
We’re not quite sure where the extra space is coming from, but you can try this css code to pull the bottom section upward.
#section-container-width { margin-bottom: -8px; }
Best regards,
IsmaelOctober 25, 2024 at 8:45 am #1469820Hello Ismael,
Thanks for the feedback. I have integrated the code and adjusted the number of px a little. The code is now:
#section-container-width {
margin-bottom: -15px !important;
margin-top: -6px !important;
}
> It works reasonably well in Firefox, but when I test the page in Google Chrome or Safari, it doesn’t work again – a margin is displayed there again.
I also don’t understand where this is coming from. Maybe you can think of something else?
Otherwise I’ll just leave it as it is …
VG DianaOctober 27, 2024 at 2:40 pm #1469936Hi,
Try adding this css:#section-container-width .avia_codeblock { height: 500px; }
Best regards,
MikeOctober 28, 2024 at 10:22 am #1469983Hello Mike,
I have integrated the specified script into the CSS. The map with openstreetmap is now on the main page of Kontakt: https://emmerams-muehle.de/kontakt (at the bottom)
Unfortunately, the white borders are still displayed.
Best regards, DianaOctober 28, 2024 at 4:12 pm #1470018October 29, 2024 at 8:49 am #1470080Dear Mike,
This is really completely surprising, because – yes, I had deleted the browser cache before and now again. I then tested the site again in Mozilla Firefox and Google Chrome and the white border is still visible in both:
see screenshot Mozilla Firefox: https://emmerams-muehle.de/support/openstreetmap.jpgBest regards Diana
October 29, 2024 at 12:44 pm #1470099 -
AuthorPosts
- You must be logged in to reply to this topic.