NetTalk Central

Author Topic: Google Maps API V3 - Display None Div not playing well  (Read 4311 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Google Maps API V3 - Display None Div not playing well
« on: November 04, 2013, 07:01:09 PM »
Hey Bruce/Folks,

Have upgraded some old mapping code to V3 of google maps api.

Experiencing a strange "only shows a portion of the map" issue.

On googling, found this .. http://stackoverflow.com/questions/4358582/google-map-shows-only-partially.

Seems to be saying you should not "display:none" the div.

Problem for me is, the maps div lives in a tab on a form, which is display:none'd by the template.

I could probably do something similar to the so post answer. Mark the maps div specifically as "display:inline;", then hide it after the map has loaded. Will give that a crack.
Cheers,

Stu Andrews

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Google Maps API V3 - Display None Div not playing well
« Reply #1 on: November 04, 2013, 07:13:00 PM »
Fiddling with "display:inline;" and $().show/hide hasn't worked so far (haven't found the right logic, if it exists).

Anyone got any tips/tricks to get around this issue?
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Google Maps API V3 - Display None Div not playing well
« Reply #2 on: November 05, 2013, 01:13:18 AM »
I think I came across the same problem when I played with the Maps. Haven't got back to it yet though, so haven't got a solution unfortunately.

cheers
Bruce

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Google Maps API V3 - Display None Div not playing well
« Reply #3 on: November 05, 2013, 09:57:16 PM »
Thanks Bruce, no worries. Isn't a pressing issue for me either :)
Cheers,

Stu Andrews