cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Drag Zoom Veil Transparency Property Loses It's Value After Zoom #143

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.In Firefox, after zooming then clicking the zoom button again, the map
div turns black, non-transparent. The veil loses it's transparency setting. 

What is the expected output? What do you see instead?
The veil opacity property should not lose its value after zooming.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by brian.be...@gmail.com on 6 Aug 2009 at 4:07

GoogleCodeExporter commented 8 years ago
I looked further into this and made some hacks to the code. First, in the
coverMousedown_ function, I set the cornerLeftDiv, cornerTopDiv, 
cornerBottomDiv, and
cornerRightDiv display property to none. I also added the display property of 
none to
the mapCover div. 
Next, in the initCover_ function, I added {display: 'block', background:
'transparent', opacity: 1, filter: 'alpha(opacity=100)'} and removed background:
G.style.fillColor.

This essentially removed the transparent cover when clicking zoom, but this OK 
for me
because I didn't want to see that anyway.

I'm not sure what causes this bug. Two things I can think of in my map that 
could
cause this are: 
1) I have a GTileLayerOverlay added by ESRI's Google API extension using the
mapextension class's addToMap method.
2) I am dynamically calculating the height and width of the map div when the 
page is
loaded or resized.

Original comment by brian.be...@gmail.com on 6 Aug 2009 at 7:52

GoogleCodeExporter commented 8 years ago
One more thing. In addition to the hacks mentioned above, I had to set the
overlayRemoveTime in the dragzoom.js file. 

Original comment by brian.be...@gmail.com on 6 Aug 2009 at 7:56