File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -665,10 +665,16 @@ describe('openlayers_GraphicLayer', () => {
665665 if ( graphic ) {
666666 graphic . lngLat ;
667667 }
668+ } ,
669+ onHover : function ( graphic ) {
670+ if ( graphic ) {
671+ graphic . lngLat ;
672+ }
668673 }
669674 } )
670675 } ) ;
671676 map . addLayer ( graphicLayer ) ;
677+ const viewport = map . getViewport ( ) ;
672678 const key = graphicLayer . on ( 'postrender' , function ( ) {
673679 const source = graphicLayer . getSource ( ) ;
674680 if ( source . renderer ) {
@@ -689,6 +695,11 @@ describe('openlayers_GraphicLayer', () => {
689695 expect ( graphic ) . toBe ( graphics [ 0 ] ) ;
690696 expect ( layer ) . toBe ( graphicLayer ) ;
691697 } ) ;
698+ viewport . dispatchEvent ( new Event ( 'pointermove' ) ) ;
699+ viewport . dispatchEvent ( new Event ( 'click' ) ) ;
700+
701+ source . isDeckGLRender = false ;
702+ viewport . dispatchEvent ( new Event ( 'click' ) ) ;
692703 done ( ) ;
693704 }
694705 } ) ;
You can’t perform that action at this time.
0 commit comments