[Google Maps API v3] Re: workaround to disable marker scaling in StreetView

2011-02-10 Thread Martin
Hi evil853. Thanks for the idea. I've just tried it - adding or removing the style element within a StreetView 'visible_changed' event listener and it works perfectly. A possible optimisation to your code, avoiding looping through all the document's style elements to find the one to remove:

[Google Maps API v3] Re: workaround to disable marker scaling in StreetView

2011-01-29 Thread evil853
small fix to prevent IE from aborting script: var cssCode = '#map div[style] { -webkit-transform: scale(1) !important; -moz-transform: scale(1) !important; }'; var styleElement = document.createElement('style'); styleElement.type = 'text/css'; if (!styleElement.styleSheet) { styleElement.id =