Solved, the correct syntax is: div.setAttribute((document.all ? "className" : "class"), "whatevertheclassis");
2010/4/26 Map-h <[email protected]> > I've been following (http://gmaps-samples-v3.googlecode.com/svn/trunk/ > overlayview/custommarker.html<http://gmaps-samples-v3.googlecode.com/svn/trunk/%0Aoverlayview/custommarker.html>) > to add a customized marker to the map > and everything works fine as far as I do not try to substitute the > step by step styling: > // div.style.border = "none"; > // div.style.position = "absolute"; > // div.style.paddingLeft = "0px"; > > With a handy class: > > div.setAttribute("class", "whatevertheclassis"); > > Why does the map doesn't recognize the class? > Is there another way to add a css class to it? > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
