@@ -37,7 +37,7 @@ describe('leaflet_ImageMapLayer', () => {
3737 var tempOptions = {
3838 layersID : null ,
3939 redirect : false ,
40- transparent : null ,
40+ transparent : false ,
4141 cacheEnabled : null ,
4242 clipRegionEnabled : true ,
4343 prjCoordSys : null ,
@@ -58,7 +58,7 @@ describe('leaflet_ImageMapLayer', () => {
5858 expect ( imageLayer ) . not . toBeNull ( ) ;
5959 expect ( imageLayer . options . layersID ) . toBeNull ( ) ;
6060 expect ( imageLayer . options . redirect ) . toBeFalsy ( ) ;
61- expect ( imageLayer . options . transparent ) . toBeNull ( ) ;
61+ expect ( imageLayer . options . transparent ) . toBeFalsy ( ) ;
6262 expect ( imageLayer . options . cacheEnabled ) . toBeNull ( ) ;
6363 expect ( imageLayer . options . clipRegionEnabled ) . toBeTruthy ( ) ;
6464 expect ( imageLayer . options . prjCoordSys ) . toBeNull ( ) ;
@@ -118,7 +118,7 @@ describe('leaflet_ImageMapLayer', () => {
118118 it ( 'getImageUrl' , ( ) => {
119119 imageLayer = imageMapLayer ( url ) . addTo ( map ) ;
120120 expect ( imageLayer . getImageUrl ( ) ) . not . toBeNull ( ) ;
121- expect ( imageLayer . getImageUrl ( ) ) . toBe ( url + "/image.png?&redirect=false&transparent=false &cacheEnabled=true&overlapDisplayed=false" ) ;
121+ expect ( imageLayer . getImageUrl ( ) ) . toBe ( url + "/image.png?&redirect=false&transparent=true &cacheEnabled=true&overlapDisplayed=false" ) ;
122122 } ) ;
123123
124124 it ( 'getImageUrl_tilePoxy' , ( ) => {
@@ -131,12 +131,12 @@ describe('leaflet_ImageMapLayer', () => {
131131 var oldUrl , newUrl ;
132132 imageLayer . on ( 'load' , ( ) => {
133133 oldUrl = imageLayer . _currentImage . _url ;
134- expect ( oldUrl ) . toBe ( url + '/image.png?viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-19567879.241005123%2C%22y%22%3A-19567879.24100514%7D%2C%22rightTop%22%3A%7B%22x%22%3A19567879.241005123%2C%22y%22%3A19567879.241005138%7D%7D&width=500&height=500&redirect=false&transparent=false &cacheEnabled=true&overlapDisplayed=false' ) ;
134+ expect ( oldUrl ) . toBe ( url + '/image.png?viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-19567879.241005123%2C%22y%22%3A-19567879.24100514%7D%2C%22rightTop%22%3A%7B%22x%22%3A19567879.241005123%2C%22y%22%3A19567879.241005138%7D%7D&width=500&height=500&redirect=false&transparent=true &cacheEnabled=true&overlapDisplayed=false' ) ;
135135 map . zoomIn ( ) ;
136136 imageLayer . off ( 'load' ) ;
137137 imageLayer . on ( 'load' , ( ) => {
138138 newUrl = imageLayer . _currentImage . _url ;
139- expect ( newUrl ) . toBe ( url + '/image.png?viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-9783939.620502561%2C%22y%22%3A-9783939.620502561%7D%2C%22rightTop%22%3A%7B%22x%22%3A9783939.620502561%2C%22y%22%3A9783939.620502565%7D%7D&width=500&height=500&redirect=false&transparent=false &cacheEnabled=true&overlapDisplayed=false' ) ;
139+ expect ( newUrl ) . toBe ( url + '/image.png?viewBounds=%7B%22leftBottom%22%3A%7B%22x%22%3A-9783939.620502561%2C%22y%22%3A-9783939.620502561%7D%2C%22rightTop%22%3A%7B%22x%22%3A9783939.620502561%2C%22y%22%3A9783939.620502565%7D%7D&width=500&height=500&redirect=false&transparent=true &cacheEnabled=true&overlapDisplayed=false' ) ;
140140 expect ( oldUrl ) . not . toEqual ( newUrl ) ;
141141 done ( ) ;
142142 } ) ;
0 commit comments