| Issue 3125: | Variable opacity for Image Map Type layer | |
| 18 people starred this issue and may be notified of changes. | Back to list |
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]
May 24, 2011
(No comment was entered for this change.)
Status:
Acknowledged
Labels: Internal-4488049
Jun 24, 2011
This would be very welcome. Any estimate on this?
Dec 12, 2011
I would love to see this issue taken care of.
Jan 7, 2012
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
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
I would like this as well. Any current workarounds?
Feb 2, 2012
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
Another workaround can also be found here: http://www.gavinharriss.com/code/opacity-control This worked really well too.
Feb 2, 2012
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
(No comment was entered for this change.)
Status:
Fixed
Aug 23, 2012
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
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 |