Javascript ng show在谷歌地图信息窗口中不起作用
下面是我用来显示InfoWindow Google地图的代码:Javascript ng show在谷歌地图信息窗口中不起作用,javascript,angularjs,Javascript,Angularjs,下面是我用来显示InfoWindow Google地图的代码: $scope.showPoint = function(marker, eventName, point) { $scope.options.info.coords = point; $scope.geocode_result = true; $scope.options.info.show = true; }; 模板: <ui-gmap-window closeClick="closeInf
$scope.showPoint = function(marker, eventName, point) {
$scope.options.info.coords = point;
$scope.geocode_result = true;
$scope.options.info.show = true;
};
模板:
<ui-gmap-window closeClick="closeInfoWindow" coords="options.info.coords" show="options.info.show">
<div class="window-content">
<h3 class="text-center">
"{{ options.info.point.label }}"
</h3>
<div class="body">
<hr />
<div class="preloader" ng-show="geocode_result">
<img src="img/preloader.gif" /><span><strong>Получение адреса...</strong></span>
</div>
</div>
</div>
</ui-gmap-window>
如您所见,我在模板中使用了ng show,并将其值设置为true,但预加载程序仍然隐藏。我可以看到没有预装器的窗口。如何修复此代码 您是否尝试在调试器中打开它?您能否检查img是否存在但未显示?我猜你的形象走错了方向?你在body/preload上有CSS吗?