Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit e73fa9f

Browse files
committed
Merge pull request #1438 from meyacine/patch-2
issue-147-ng-show-map-refresh.js
2 parents afe4f94 + b9bf8ed commit e73fa9f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Created by Maamar Yacine MEDDAH on 14/08/2015.
3+
*/
4+
'use strict'
5+
var app = angular.module('ngMap', ['uiGmapgoogle-maps']);
6+
app.controller('gMapCtrl', ['$scope','uiGmapIsReady', function($scope, IsReady){
7+
$scope.map = { center: { latitude: 45, longitude: -73 }, zoom: 8 };
8+
$scope.displayed = false;
9+
$scope.showMap = function(){
10+
$scope.displayed = true;
11+
IsReady.promise().then(function (maps) {
12+
google.maps.event.trigger(maps[0].map, 'resize');
13+
});
14+
}
15+
}]);

0 commit comments

Comments
 (0)