-1

I have a google map inside a jquery tab. The problem is that when I switch to the tab that contains map, my map is shown incorrectly. look at the picture:

enter image description here

After resizing window, map renders ok. Any idea?

Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106
  • 1
    Duplicated post: http://stackoverflow.com/questions/5518225/google-map-generating-incorrectly – Miroslav Aug 30 '12 at 10:10
  • 1
    possible duplicate of http://stackoverflow.com/questions/6455536/google-maps-api-v3-jquery-ui-tabs-map-not-resizing – muthu Aug 30 '12 at 10:12
  • 1
    Not much we can do with a screenshot other than guess that you map div doesn't have a size. Please show us your code if you want a more qualified answer. – Marcelo Aug 30 '12 at 10:33

1 Answers1

1

Call google.maps.event.trigger(map, 'resize')

Chris Broadfoot
  • 5,082
  • 1
  • 29
  • 37