Fixed
Status Update
Comments
xa...@gmail.com <xa...@gmail.com> #2
Interesting idea - I've shared your request with the team.
ar...@gmail.com <ar...@gmail.com> #3
Hey, thanks for considering this.
Of course, the idea could be applied to other places of the API as well, basically to all setter functions without
return value.
map.set_center(latLng).set_zoom(zoom);
marker.set_icon(foo).set_cursor(bar);
etc.
Of course, the idea could be applied to other places of the API as well, basically to all setter functions without
return value.
map.set_center(latLng).set_zoom(zoom);
marker.set_icon(foo).set_cursor(bar);
etc.
jo...@gmail.com <jo...@gmail.com> #4
I would love to see this issue taken care of.
ja...@gmail.com <ja...@gmail.com> #5
Any idea when this might be added? Changes in 3.7 seemed to have broken my workaround for dynamically changing the image opacity.
br...@gmail.com <br...@gmail.com> #6
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.
dk...@edrnet.com <dk...@edrnet.com> #7
I would like this as well. Any current workarounds?
br...@gmail.com <br...@gmail.com> #8
[Comment deleted]
br...@gmail.com <br...@gmail.com> #9
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.
ja...@gmail.com <ja...@gmail.com> #10
dk...@edrnet.com <dk...@edrnet.com> #11
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);
wmsOptions.opacity = new Val; //wmsOptions is global
wmsMapType = new google.maps.ImageMapType(wmsOptions);
map.overlayMapTypes.setAt(0, wmsMapType);
cb...@google.com <cb...@google.com>
ma...@gmail.com <ma...@gmail.com> #12
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?
ja...@gmail.com <ja...@gmail.com> #13
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.
YourImgTiles.setOpacity(newValue);
NewValue can be passed from a slider or a constant that you set.
[Deleted User] <[Deleted User]> #14
I'm having trouble getting the .setOpacity() to work in IE 11 and MS Edge. Any one else run into this problem? I'm using a slider input type="range".
Description