WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] Meta viewport set to non-scaling (6 posts)

  1. dankennedy
    Member
    Posted 3 years ago #

    Not sure if this was intentional or not, but adding user-scalable=no to the front-end-head.php page stopped my mobile device from being able to zoom in and out.

    I'm hoping you can remove this so any future updates won't overwrite my change to remove it so the website would work on mobile devices?

    Thanks, and nice plugin BTW.

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

  2. Ian Dunn
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for letting me know. I included that because it was in some of Google's official examples, but I'll do some research and see if I can take it out without hurting anything.

  3. Ian Dunn
    Member
    Plugin Author

    Posted 3 years ago #

    Are you trying to use the browser's zoom, or the zoom feature that the map provides?

  4. dankennedy
    Member
    Posted 3 years ago #

    This affected my entire website, even on the pages not using your plugin. When any page was loaded on an iPhone(4), the iPhone wouldn't allow pinch-zoom at all. I tracked it down to the user-scalable=no line in your plugin, and after removing it everything seemed to work.

  5. Ian Dunn
    Member
    Plugin Author

    Posted 3 years ago #

    Ah, ok. That tag is necessary for pages with the map so that the map's zoom functionality works, but it doesn't need to be included on the other pages. Unfortunately with WordPress' architecture, it's not a trivial fix because the tags needs be output before we know if the shortcode has been called, but there are a few workarounds.

    I'll work on getting a fix for this into the next release so that that tag is only output on the page that has the map.

  6. Ian Dunn
    Member
    Plugin Author

    Posted 3 years ago #

    I just released 1.1.3, which has this fixed. The files will only be loaded on the page that calls the shortcode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic