WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
Need 2 clicks for open properly (13 posts)

  1. lainol
    Member
    Posted 10 months ago #

    Hi there, in http://www.katyarooms.com I need to make 2 clicks in the placemark to open it properly, any ideas?

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

  2. Gillian
    Member
    Posted 10 months ago #

    In Firefox (haven't tested in other browsers yet) I've found (only recently) that the first click on a placemark opens up the info window with scroll bars present (which didn't used to happen). If I click on the placemark a second time (while the info window is open) then the info window reappears correctly, without scrollbars. Thereafter, until the page is refreshed, the first click on a placemark opens up the info window correctly (without scrollbars).

    Having checked the placemarks on your site, I believe this is the same info window display issue that you are experiencing, and described in your post.

    What theme are you using?

  3. lainol
    Member
    Posted 10 months ago #

  4. Gillian
    Member
    Posted 9 months ago #

    Thanks for the reply Iainol. We use different themes so the issue probably isn't tbeme related.

    The good news is that I just updated to WordPress 3.7 and the issue has resolved itself. I suspect that the previous WordPress update might have been what introduced the problem, because the problem only turned up relatively recently.

  5. metiusss
    Member
    Posted 7 months ago #

    Same problem.
    I just updated to 3.7 but always 2 click for open properly.
    The first click open little window with scroll bars!

    Placemark with iframe video looks good with one click!

    Problem is with image inside post.

  6. Gillian
    Member
    Posted 7 months ago #

    I've been meaning to come back and post again to say the problem wasn't resolved for me by the WordPress update as I had thought it was. I still have the issue. The first click on a placemark opens the info window with scroll bars - clicking either that placemark again, or any other, opens the info window correctly, until the page is refreshed.

    Is this issue being looked at? It is being reported by a few people, using different themes. Possibly those who haven't reported the issue just haven't noticed it yet.

  7. Ian Dunn
    Member
    Plugin Author

    Posted 7 months ago #

    I'm seeing that too. The Maps API dynamically generates the size for each box when it opens, and it seems like it's not doing it correctly the first time.

    The div.gm-style.iw element has the height attribute set a few pixels too small, which causes the scrollbars.

    I played around with a few potential fixes, but couldn't find anything that worked. I'll try again when I have some more time.

  8. Gillian
    Member
    Posted 7 months ago #

    Thanks for looking into this, Ian - much appreciated :-)

    And Merry Christmas!

  9. rmdcron
    Member
    Posted 7 months ago #

    Thanks for the great plugin. Any update on this issues?

  10. jackennils
    Member
    Posted 2 months ago #

    Same problem here. Any ideas yet?

  11. jackennils
    Member
    Posted 1 week ago #

    I found the solution!

    Simply add the following rule to your style.css:

    // Basic Google Maps Placemarks Fix
    div.gm-style-iw {
      width: 510px;
      height:310px;
      }

    Change width and height to be suitable for your needs.

  12. pcubed
    Member
    Posted 1 week ago #

    Hi Nils,

    awesome, works perfectly. THANK YOU!

  13. Gillian
    Member
    Posted 4 days ago #

    Thanks, Nils :-) For my application which has variable-height info windows, I found this variation (hides the scrollbar completely but doesn't bother me because I don't need it) worked better:

    // Basic Google Maps Placemarks Fix
    div.gm-style-iw {overflow: hidden !important;}

    The first click on the first placemark now chops off a bit of white space under my info window content, but at least it looks better than having a scroll bar which isn't needed.

    For those who might want ot delve further into the reported issue, this thread
    http://stackoverflow.com/questions/1554893/google-maps-api-v3-infowindow-not-sizing-correctly
    has a lot of posts and many different solutions, but they mostly require coding ability.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.