To my limited knowledge the answer seems to be no. It's for a legend that the user can remove if it's cluttering up the map_canvas.
I've just discovered this approach: — create the control div — nest another div inside of it, whose id we define — toggle the { display: } of that div between 'block' and 'none' using, for example, a checkbox. The control appears to disappear and reappear, although of course it is never actually removed from the map. Which, for a quick and dirty workaround, might be the ticket... On Mar 1, 3:14 pm, Nick <mercy.recomme...@gmail.com> wrote: > Good question. Anyone? > > Styles are defined on creation. I will give your suggestion a go. > > On Mar 1, 3:10 pm, Martin™ <warwo...@gmail.com> wrote: > > > > > Can you assign an id to the custom control when you create it? > > > Martin. > > > On Mar 1, 3:00 pm, Nick <mercy.recomme...@gmail.com> wrote: > > > > How do I ascertain a custom control's element id? Ie. > > > document.getElementById etc? -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.