File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 141141 this . parentElement . _layerControl . removeLayer ( this . _layer ) ;
142142 } else {
143143 this . _layerControl = this . parentElement . _layerControl ;
144- this . _layerControl . addOverlay ( this . _layer , this . label ) ;
144+ this . _layerControl . addOrUpdateOverlay ( this . _layer , this . label ) ;
145145 }
146146 this . _validateDisabled ( ) ;
147147 }
200200 // if controls option is enabled, insert the layer into the overlays array
201201 if ( Polymer . dom ( this ) . parentNode . controls && ! this . hidden ) {
202202 this . _layerControl = Polymer . dom ( this ) . parentNode . _layerControl ;
203- this . _layerControl . addOverlay ( this . _layer , this . label ) ;
203+ this . _layerControl . addOrUpdateOverlay ( this . _layer , this . label ) ;
204204 }
205205 // toggle the this.disabled attribute depending on whether the layer
206206 // is: same prj as map, within view/zoom of map
You can’t perform that action at this time.
0 commit comments