Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #312192

    Hi

    I have been trying to get Magnific Popup to work but with google maps iframes with no luck.
    I can open a image with the following code, but not iframe google maps. I have found you have modifidy other peoples function.php file to get youtube iframe videos working.
    I have tried this and also tried editing it as well to luck.
    https://kriesi.at/support/topic/youtube-video-not-working-in-ligthbox/#post-288867

    Google map example..
    <iframe src=”https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d26641.42542802056!2d151.4388963!3d-33.418598749999994!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6b72ca14f00b74e5%3A0x5017d681632df40!2sWamberal+NSW!5e0!3m2!1sen!2sau!4v1409640314305″ width=”600″ height=”450″ frameborder=”0″ style=”border:0″></iframe>

    Could you please help me with the code to be able to open maps in Magnific Popup.
    Thx

    #312682

    Hi khedrubje!

    Google forbids opening google maps using lightbox but another user managed to make it work somehow using another lightbox plugin. Please refer to this link: https://kriesi.at/support/topic/open-link-in-lightboxiframe/

    Regards,
    Ismael

    #312792

    Thank you.
    As my link above shows i have been using google maps in prettyphoto with no problems until you updated to magnific poipup which i would prefer to use now. I have enabled prettyphoto in the mean time while i try to get it to work.

    Can you share any other info please.

    #312923

    Hey!

    We don’t have any examples or instructions for that at the moment but as Ismael mentioned google has said ‘no’ on opening a map within an iframe without an api key.

    Not sure why PrettyPhoto would be having no issues with the same code but this post has instructions for what you are looking for which is your best resource as we don’t: https://kriesi.at/support/topic/open-link-in-lightboxiframe/#post-283573

    Regards,
    Devin

    #398902

    Hello

    This works without any API Key :

    <a href="https://maps.google.com/maps?q=1+Place+Giovanni+da+Verrazzano,+69009+Lyon,+France&hl=fr&iframe=true">Open Google map</a>
    

    Open Google map

    • This reply was modified 9 years, 10 months ago by pako69.
    #398915

    Hi!

    Thank you for sharing @pako69 :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.