File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ L.Google = (L.Layer || L.Class).extend({
70
70
71
71
//20px instead of 1em to avoid a slight overlap with google's attribution
72
72
//map._controlCorners['bottomright'].style.marginBottom = "20px";
73
- map . _controlCorners [ "bottomright" ] . querySelector ( ".leaflet-control-attribution" ) . style . display = "none" ;
73
+ if ( map . options . attributionControl && map . attributionControl ) {
74
+ map . attributionControl . _container . style . display = "none" ;
75
+ }
74
76
75
77
this . _reset ( ) ;
76
78
this . _update ( ) ;
@@ -87,7 +89,10 @@ L.Google = (L.Layer || L.Class).extend({
87
89
this . _map . off ( 'zoomanim' , this . _handleZoomAnim , this ) ;
88
90
89
91
//map._controlCorners['bottomright'].style.marginBottom = "0em";
90
- map . _controlCorners [ "bottomright" ] . querySelector ( ".leaflet-control-attribution" ) . style . display = "" ;
92
+ if ( map . options . attributionControl && map . attributionControl ) {
93
+ map . attributionControl . _container . style . display = "" ;
94
+ }
95
+
91
96
//this._map.off('moveend', this._update, this);
92
97
} ,
93
98
You can’t perform that action at this time.
0 commit comments