Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 可扭曲图像从传单覆盖层中消失_Angular_Typescript_Leaflet_Angular Cli_Ngx Leaflet - Fatal编程技术网

Angular 可扭曲图像从传单覆盖层中消失

Angular 可扭曲图像从传单覆盖层中消失,angular,typescript,leaflet,angular-cli,ngx-leaflet,Angular,Typescript,Leaflet,Angular Cli,Ngx Leaflet,我正在尝试使用layersControl向地图添加图像。它可以工作,但是如果我取消选择它,当我再次选择它时它将不会显示 overlays: { 'Big Circle': circle([ 46.95, -122 ], { radius: 5000 }), 'Big Square': polygon([[ 46.8, -121.55 ], [ 46.9, -121.55 ], [ 46.9, -121.7 ], [ 46.8, -121.7 ]]), Image: L.distort

我正在尝试使用
layersControl
向地图添加图像。它可以工作,但是如果我取消选择它,当我再次选择它时它将不会显示

overlays: {
  'Big Circle': circle([ 46.95, -122 ], { radius: 5000 }),
  'Big Square': polygon([[ 46.8, -121.55 ], [ 46.9, -121.55 ], [ 46.9, -121.7 ], [ 46.8, -121.7 ]]),
  Image: L.distortableImageOverlay(this.imageUrl),
},
我正在使用angular CLI和Typescript

有关图书馆是: