My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3125: Variable opacity for Image Map Type layer
18 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  Feb 2012


Sign in to add a comment
 
Reported by [email protected], Mar 9, 2011
Would be nice to have variable opacity for Image Map Types instead of just a single opacity value. This would allow for a slider bar to change the opacity of the overlay image.
Apr 5, 2011
#1 [email protected]
I'm looking forward to seeing this issue resolved.
May 24, 2011
#2 [email protected]
(No comment was entered for this change.)
Status: Acknowledged
Labels: Internal-4488049
Jun 24, 2011
#3 [email protected]
This would be very welcome. Any estimate on this?
Dec 12, 2011
#4 [email protected]
I would love to see this issue taken care of. 
Jan 7, 2012
#5 [email protected]
Any idea when this might be added? Changes in 3.7 seemed to have broken my workaround for dynamically changing the image opacity.
Feb 1, 2012
#6 [email protected]
I'll add my vote to allow a the ImageMapType to easily set the opacity value!  It would be a shame to have to redo what I have, using ImageMapType, using a custom MapType, just so I can dynamically change the opacity.
Feb 2, 2012
#7 [email protected]
I would like this as well.  Any current workarounds?
Feb 2, 2012
#9 [email protected]
Yeah, Had to ditch the Image Map Type and use this guys technique of creating tiles in <img> tags.  He made a class called MCustomTileLayer you can find a working example here: http://maps.forum.nu/v3/gm_customTiles_N1.html.  Made a few tweaks for what I was working with, but this worked great for me.
Feb 2, 2012
#10 [email protected]
Another workaround can also be found here:

http://www.gavinharriss.com/code/opacity-control

This worked really well too.
Feb 2, 2012
#11 [email protected]
Thanks for the links!  It also seems that I can simply remove and add the ImageMapType again with the desired functionality, or use setAt(index,options).  Would this be bad on performance?

wmsOptions.opacity = new Val; //wmsOptions is global
wmsMapType = new google.maps.ImageMapType(wmsOptions);
map.overlayMapTypes.setAt(0, wmsMapType);
Feb 19, 2012
#12 [email protected]
(No comment was entered for this change.)
Status: Fixed
Aug 23, 2012
#13 [email protected]
This was marked as 'fixed' in comment 12 above... is there now a way to dynamically change the overlay opacity using ImageMapType, without resorting to using a custom map type?
Aug 23, 2012
#14 [email protected]
Yep, you can now set opacity on an ImageMapType like this:

YourImgTiles.setOpacity(newValue);

NewValue can be passed from a slider or a constant that you set.
Sign in to add a comment

Powered by Google Project Hosting