WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] Iphone and Ipad layout (8 posts)

  1. crosscheck4
    Member
    Posted 2 years ago #

    First off GREAT plugin!

    I am having a small issue on a full size map 900px x 550px. When viewing on the ipad and iphone the page doesn't shrink down to the browser size as it does on all the other pages. It appears to stay the width of the content area and breaks the theme. If I can figure out what is causing that I will post back. I checked on the demo washingtonchurches.net and got the same results as well. To see what is going on just navigate between the map and directory page on the demo.

    Also I read in a previous post that the plugin doesn't support geo location....I would be interested in that!

    Thanks for this awesome them. Please let me know if you come across anything and if I can figure it out I will be sure to post back.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    It does that on purpose by adding this meta tag to the <head> section of the page:

    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

    The reason is that zooming get screwed up by mobile browsers shrinking the map.

    If you want to remove it, you can put this code in your theme or a functionality plugin:

    function removeBGMPHead()
    {
    	global $bgmp;
    	remove_action( 'wp_head', array( $bgmp, 'outputHead' ) );
    }
    add_action( 'after_setup_theme', 'removeBGMPHead' );
  3. crosscheck4
    Member
    Posted 2 years ago #

    Nice! Worked great, Thank You!

  4. Johnny711
    Member
    Posted 2 years ago #

    Hey Ian I am having the same problem. I used the snippet you just gave. I works great on my iPad. The iPhone now resized the map but breaks up my place marks and map.

    http://www.sandiegona.org/northcoastal/tuesday-meetings/

    Great plugin by the way. Of course like crosscheck above geo tagging would be awesome.

  5. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Johnny, I think that that's to be expected. The reason the plugin prevents re-sizing the map by default is to avoid issues like that. Google recommends forcing the map to stay the original size on mobile devices, and they has an app specifically for iPhones, so I don't think they intend the regular full-sized maps to be viewed from mobile devices.

    I'm not aware of a good way to work around that for embedded maps like the one BGMP produces.

  6. jwing11
    Member
    Posted 1 year ago #

    Ian, thank you it worked, the problem was I had removed the meta viewport tag but hadn't added that additional code you posted above. Very cool. Thanks again!

  7. kobobo
    Member
    Posted 1 year ago #

    What if the page is loaded without scale. When it is loaded, then scaling? Should work?

  8. kobobo
    Member
    Posted 1 year ago #

    And it should work. Open this with an mobile device. This should`t work if scaling should be the problem...

    click me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic