-4

I have an issue with my map since i put it from the sidebar to the main content of my page.

The map is displaced to the upper right corner and the rest of the canvas keeps blank.

map

Goto this link:

http://bit.ly/1u8gFBb (click on Map within the tabs below the image)

  • Can someone suggest what this causes this rendering problem and how to solve?
Suresh Karia
  • 17,550
  • 18
  • 67
  • 85
Jan
  • 12,992
  • 9
  • 53
  • 89

3 Answers3

0

Refer this questions!


SOLUTION:

I found the solution in above questions.

I've had this issue before too and fixed it by waiting for the map's 'idle' state (i.e. when it's finished) and then calling the resize:

google.maps.event.addListenerOnce(map, 'idle', function() {
   google.maps.event.trigger(map, 'resize');
});

or

Resize the map

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

Recenter the map, where myCenter is your lat, lng point.

map.setCenter(myCenter);
Community
  • 1
  • 1
Suresh Karia
  • 17,550
  • 18
  • 67
  • 85
0

The "tab" which I added before was a li within the tabs the content get into troubles.

Jan
  • 12,992
  • 9
  • 53
  • 89
-1

enter image description here

1) There are certain things missing in your API. 2) Check your logs..

enter image description here

Arty
  • 819
  • 3
  • 13
  • 24