Tag: ionic

模式中的Google地图仅显示第一张地图

我正在尝试使用google maps api来显示我从一组json数据传入的地址的地图,但是当我运行代码时它只显示传递给它的第一个地址。 打开模态时,它会显示地图,但一旦关闭并打开另一个地图,它将不会显示地图,只是一个空白区域。 模态控制器 .controller(‘ModalCtrl’, function($scope, $ionicModal) { $ionicModal.fromTemplateUrl(‘templates/modal.html’, { scope: $scope, animation: ‘slide-in-up’ }).then(function(modal) { $scope.modal = modal; }); $scope.openModal = function(b,c) { $scope.modal.show(); var myLatlng = new google.maps.LatLng(b,c); var mapProp = { center: myLatlng, zoom:15, mapTypeId:google.maps.MapTypeId.ROADMAP }; var map=new google.maps.Map(document.getElementById(“map”),mapProp); var marker = new google.maps.Marker({ position: myLatlng, map: map }); $scope.map = […]

如何制作离子内容滚动

这可能是一个愚蠢的问题,但这确实令人头疼。 我无法使内容可滚动,我没有添加任何内容,我只是无法无缘无故滚动。 我刚开始一个新的页面,我正在动态填充列表,但我遇到的问题是我无法滚动 这是我的完整代码: <!– IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above –> {{ m.competition }} {{ s.team1.name+’ – ‘+s.team2.name }} var app = angular.module(‘starter’, []); app.controller(‘customersCtrl’, function($scope, $http) { $http.get(“http://int.footballclub.orange.com/ofc/matches?date=2015-05-20”) .success(function (response) { $scope.matches = response; for (var i = 0; i < response.length; i++) […]