Fullscreen when leaflet map is inside an iframe
jimjam-slam opened this issue · 1 comments
Hi there,
I really the fullscreen control, but in my case I'm hosting my leaflet map on Github Pages and then directing others to embed it on their sites as an iframe
(because they're not necessarily technical users and I'd like to just give them an embed code). When I visit the map directly, the control works fine, but when it's embedded the control doesn't do anything. I'm assuming this is because the control doesn't influence the properties of its iframe
. Is there any way to do this, or does it require telling my users to set up external styling? Would such styling be short enough that I could just put it into the embed code directly?
Oops, nevermind—I wasn't aware that the allowfullscreen
attribute was needed in the iframe
. All works fine now 😄