File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ export class Util {
515
515
Util . unsetMask ( todoLayers ) ;
516
516
todoLayers . forEach ( ( layer ) => {
517
517
layer . classNameBak_ = layer . className_ ;
518
- layer . className_ = 'ol_mask_layer' ;
518
+ layer . className_ = `ol_mask_layer_ ${ layer . ol_uid } ` ;
519
519
layer . clipRender = clipRender ;
520
520
layer . extentBak_ = layer . getExtent ( ) ;
521
521
layer . setExtent ( clipLayer . getSource ( ) . getExtent ( ) ) ;
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ describe('openlayers_Util', () => {
252
252
] ) ;
253
253
Util . setMask ( layer , polygon ) ;
254
254
expect ( layer . classNameBak_ ) . toBe ( 'ol-layer' ) ;
255
- expect ( layer . className_ ) . toBe ( 'ol_mask_layer ') ;
255
+ expect ( layer . className_ ) . toContain ( 'ol_mask_layer_ ') ;
256
256
expect ( layer . clipRender ) . not . toBeNull ;
257
257
expect ( layer . setExtent ) . toHaveBeenCalled ;
258
258
expect ( layer . changed ) . toHaveBeenCalled ;
You can’t perform that action at this time.
0 commit comments