Skip to content

Commit b3ad18e

Browse files
committed
Version 1.16.7
1 parent cc617fc commit b3ad18e

File tree

7 files changed

+31
-16
lines changed

7 files changed

+31
-16
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngmap",
3-
"version": "1.16.6",
3+
"version": "1.16.7",
44
"main": "./build/scripts/ng-map.js",
55
"homepage": "https://github.com/allenhwkim/angularjs-google-maps",
66
"authors": [

build/docs/NgMapPool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h5>Returns:</h5>
248248
</dd>
249249
</dl><dl>
250250
<dt>
251-
<a href="source/NgMapPool.html#line55" class="name-link">
251+
<a href="source/NgMapPool.html#line60" class="name-link">
252252
<h4 class="name">
253253
returnMapInstance
254254
<span class="signature">(an)</span>

build/docs/source/NgMapPool.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ <h1 class="title">
184184
* @desc map instance pool
185185
*/
186186
var mapInstances = [];
187-
var $window, $document;
187+
var $window, $document, $timeout;
188188
var add = function(el) {
189189
var mapDiv = $document.createElement("div");
190190
mapDiv.style.width = "100%";
@@ -217,6 +217,11 @@ <h1 class="title">
217217
var map = find(el);
218218
if (!map) {
219219
map = add(el);
220+
} else {
221+
/* firing map idle event, which is used by map controller */
222+
$timeout(function() {
223+
google.maps.event.trigger(map, 'idle');
224+
}, 100);
220225
}
221226
map.inUse = true;
222227
return map;
@@ -231,15 +236,15 @@ <h1 class="title">
231236
var returnMapInstance = function(map) {
232237
map.inUse = false;
233238
};
234-
var NgMapPool = function(_$document_, _$window_) {
235-
$document = _$document_[0], $window = _$window_;
239+
var NgMapPool = function(_$document_, _$window_, _$timeout_) {
240+
$document = _$document_[0], $window = _$window_, $timeout = _$timeout_;
236241
return {
237242
mapInstances: mapInstances,
238243
getMapInstance: getMapInstance,
239244
returnMapInstance: returnMapInstance
240245
};
241246
};
242-
NgMapPool.$inject = [ '$document', '$window' ];
247+
NgMapPool.$inject = [ '$document', '$window', '$timeout'];
243248
angular.module('ngMap').factory('NgMapPool', NgMapPool);
244249
})();
245250
</code></pre>

build/scripts/ng-map.debug.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,7 +2764,7 @@ angular.module('ngMap', []);
27642764
* @desc map instance pool
27652765
*/
27662766
var mapInstances = [];
2767-
var $window, $document;
2767+
var $window, $document, $timeout;
27682768

27692769
var add = function(el) {
27702770
var mapDiv = $document.createElement("div");
@@ -2800,6 +2800,11 @@ angular.module('ngMap', []);
28002800
var map = find(el);
28012801
if (!map) {
28022802
map = add(el);
2803+
} else {
2804+
/* firing map idle event, which is used by map controller */
2805+
$timeout(function() {
2806+
google.maps.event.trigger(map, 'idle');
2807+
}, 100);
28032808
}
28042809
map.inUse = true;
28052810
return map;
@@ -2816,16 +2821,16 @@ angular.module('ngMap', []);
28162821
map.inUse = false;
28172822
};
28182823

2819-
var NgMapPool = function(_$document_, _$window_) {
2820-
$document = _$document_[0], $window = _$window_;
2824+
var NgMapPool = function(_$document_, _$window_, _$timeout_) {
2825+
$document = _$document_[0], $window = _$window_, $timeout = _$timeout_;
28212826

28222827
return {
28232828
mapInstances: mapInstances,
28242829
getMapInstance: getMapInstance,
28252830
returnMapInstance: returnMapInstance
28262831
};
28272832
};
2828-
NgMapPool.$inject = [ '$document', '$window' ];
2833+
NgMapPool.$inject = [ '$document', '$window', '$timeout'];
28292834

28302835
angular.module('ngMap').factory('NgMapPool', NgMapPool);
28312836

build/scripts/ng-map.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,7 @@ angular.module('ngMap', []);
27622762
* @desc map instance pool
27632763
*/
27642764
var mapInstances = [];
2765-
var $window, $document;
2765+
var $window, $document, $timeout;
27662766

27672767
var add = function(el) {
27682768
var mapDiv = $document.createElement("div");
@@ -2798,6 +2798,11 @@ angular.module('ngMap', []);
27982798
var map = find(el);
27992799
if (!map) {
28002800
map = add(el);
2801+
} else {
2802+
/* firing map idle event, which is used by map controller */
2803+
$timeout(function() {
2804+
google.maps.event.trigger(map, 'idle');
2805+
}, 100);
28012806
}
28022807
map.inUse = true;
28032808
return map;
@@ -2814,16 +2819,16 @@ angular.module('ngMap', []);
28142819
map.inUse = false;
28152820
};
28162821

2817-
var NgMapPool = function(_$document_, _$window_) {
2818-
$document = _$document_[0], $window = _$window_;
2822+
var NgMapPool = function(_$document_, _$window_, _$timeout_) {
2823+
$document = _$document_[0], $window = _$window_, $timeout = _$timeout_;
28192824

28202825
return {
28212826
mapInstances: mapInstances,
28222827
getMapInstance: getMapInstance,
28232828
returnMapInstance: returnMapInstance
28242829
};
28252830
};
2826-
NgMapPool.$inject = [ '$document', '$window' ];
2831+
NgMapPool.$inject = [ '$document', '$window', '$timeout'];
28272832

28282833
angular.module('ngMap').factory('NgMapPool', NgMapPool);
28292834

build/scripts/ng-map.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngmap",
3-
"version": "1.16.6",
3+
"version": "1.16.7",
44
"main": "build/scripts/ng-map.js",
55
"dependencies": {},
66
"engines": {

0 commit comments

Comments
 (0)