Sometimes google map comes partially with other area getting grayed out. There is one catch, if we start Firebug, images do come in that gray area. Dont know why this is happening. Anybody ever experienced this and found solution, Please share.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
I had this issue pop up while working on other parts of my site so I didn't notice it right when it started. After going through every change I had made over the last hour, I came across the culprit:
in my css. I removed that and voila, it works. (Of course, I could just change the overflow attribute on my map div but I only need overflow: auto on a couple divs.) I'm sure there's a good reason why but I'm pretty new at this so I don't know. Anyways I hope this can help someone.
this style solved my problem
This forces the browser to allow the map to be as wide as it needs to be - the
!important
essentially means "do not overwrite this style".The above solutions nothing works for me.
I have used
display:none
for my map, By changing it tovisibility:hidden
it works fine for me.Change
display:none
To
visibility:hidden
This bug can occur if you are resizing the map's
DIV
. After resizing, try to callgmap.checkResize()
function.Hi if you are using toggle in a div with a map container you call resizeMap in the function
then resizeMap(); like this
don't forget to set map variable as global ;) cheers
I solved it this way, my problem was in the rotation device, this solution works great: