I’m currently migrating an application from GMaps V2 to V3. As I use OSM and other non-Google map layers, I want to keep the copyright notice at the bottom right. But the reference documentation doesn’t give any hints on this. In V2, the copyright even had its own class GCopyrightCollection, and was passed to GTileLayer. Google Code playground also doesn’t provide an example for V3.
Does anyone know how to do this in the new API?
The mailing list helped me on this issue (see thread). There is sample code on Google Code for copyright collections and how to display them in the bottom right corner of the map DIV.
As there is a problem with layouting the custom DIV in the bottom right corner (only jumps to the correct position when the map is dragged, problem of GMaps API itself), I am now displaying it in the bottom left corner instead. (UPDATE: Problem seems to be fixed in API !)
The following code works as expected (of course I’m not using global variables, removed
this.for clarity):