OpenLayers OpenLayers

Changeset 1614

Show
Ignore:
Timestamp:
10/05/06 16:46:58 (2 years ago)
Author:
sderle
Message:

Move the branding/ToS stuff up to the event pane in Layer.Google. Fixes #185. A big hurrah for the Uzmeister and his suggestion that solved this conundrum.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/Google.js

    r1588 r1614  
    122122            this.gmap = new GMap2( this.div ); 
    123123            this.gmap.disableDragging(); 
    124              
    125             // this causes the GMap to set itself to Map's center/zoom 
     124 
     125            // move the ToS and branding stuff up to the pane 
     126            // thanks a *mil* Erik for thinking of this 
     127            var termsOfUse = this.div.lastChild; 
     128            this.div.removeChild(termsOfUse); 
     129            this.pane.appendChild(termsOfUse); 
     130 
     131            var poweredBy = this.div.lastChild; 
     132            this.div.removeChild(poweredBy); 
     133            this.pane.appendChild(poweredBy); 
     134 
     135             // this causes the GMap to set itself to Map's center/zoom 
    126136            this.moveTo(); 
    127137 
     
    129139            this.loadWarningMessage(); 
    130140        } 
     141                
    131142    }, 
    132143