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 {
515515 Util . unsetMask ( todoLayers ) ;
516516 todoLayers . forEach ( ( layer ) => {
517517 layer . classNameBak_ = layer . className_ ;
518- layer . className_ = 'ol_mask_layer' ;
518+ layer . className_ = `ol_mask_layer_ ${ layer . ol_uid } ` ;
519519 layer . clipRender = clipRender ;
520520 layer . extentBak_ = layer . getExtent ( ) ;
521521 layer . setExtent ( clipLayer . getSource ( ) . getExtent ( ) ) ;
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ describe('openlayers_Util', () => {
252252 ] ) ;
253253 Util . setMask ( layer , polygon ) ;
254254 expect ( layer . classNameBak_ ) . toBe ( 'ol-layer' ) ;
255- expect ( layer . className_ ) . toBe ( 'ol_mask_layer ') ;
255+ expect ( layer . className_ ) . toContain ( 'ol_mask_layer_ ') ;
256256 expect ( layer . clipRender ) . not . toBeNull ;
257257 expect ( layer . setExtent ) . toHaveBeenCalled ;
258258 expect ( layer . changed ) . toHaveBeenCalled ;
You can’t perform that action at this time.
0 commit comments