Skip to content

Commit 7b4df98

Browse files
committed
Version 1.2.0
1 parent 7ebfdc1 commit 7b4df98

File tree

8 files changed

+35
-9
lines changed

8 files changed

+35
-9
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.1.8",
3+
"version": "1.2.0",
44
"main": "./build/scripts/ng-map.js",
55
"homepage": "https://github.com/allenhwkim/angularjs-google-maps",
66
"authors": [

build/docs/Attr2Options.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h5>Returns:</h5>
282282

283283

284284

285-
<a href="attr2_options.js.html#line286" class="name-link"><h4 class="name" id="getControlOptions"><span class="type-signature">(static) </span>getControlOptions<span class="signature">(filtered)</span><span class="type-signature"> &rarr; {Hash}</span></h4></a>
285+
<a href="attr2_options.js.html#line288" class="name-link"><h4 class="name" id="getControlOptions"><span class="type-signature">(static) </span>getControlOptions<span class="signature">(filtered)</span><span class="type-signature"> &rarr; {Hash}</span></h4></a>
286286

287287

288288

@@ -372,7 +372,7 @@ <h5>Parameters:</h5>
372372

373373
<dt class="tag-source">Source:</dt>
374374
<dd class="tag-source"><ul class="dummy"><li>
375-
<a href="attr2_options.js.html">services/attr2_options.js</a>, <a href="attr2_options.js.html#line286">line 286</a>
375+
<a href="attr2_options.js.html">services/attr2_options.js</a>, <a href="attr2_options.js.html#line288">line 288</a>
376376
</li></ul></dd>
377377

378378

build/docs/MapController.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h4 class="name" id="addShape"><span class="type-signature">(static) </span>addS
351351

352352
<dt class="tag-source">Source:</dt>
353353
<dd class="tag-source"><ul class="dummy"><li>
354-
<a href="map_controller.js.html">directives/map_controller.js</a>, <a href="map_controller.js.html#line41">line 41</a>
354+
<a href="map_controller.js.html">directives/map_controller.js</a>, <a href="map_controller.js.html#line72">line 72</a>
355355
</li></ul></dd>
356356

357357

@@ -407,7 +407,7 @@ <h4 class="name" id="addShape"><span class="type-signature">(static) </span>addS
407407

408408
<dt class="tag-source">Source:</dt>
409409
<dd class="tag-source"><ul class="dummy"><li>
410-
<a href="map_controller.js.html">directives/map_controller.js</a>, <a href="map_controller.js.html#line72">line 72</a>
410+
<a href="map_controller.js.html">directives/map_controller.js</a>, <a href="map_controller.js.html#line41">line 41</a>
411411
</li></ul></dd>
412412

413413

build/docs/attr2_options.js.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ <h1 class="page-title">Source: services/attr2_options.js</h1>
281281

282282
var args = scope.$eval("["+argsStr+"]");
283283
return function(event) {
284-
scope[funcName].apply(this, [event].concat(args));
284+
function index(obj,i) {return obj[i]}
285+
f = funcName.split('.').reduce(index, scope)
286+
f.apply(this, [event].concat(args));
285287
scope.$apply();
286288
}
287289
}

build/docs/info-window.js.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ <h1 class="page-title">Source: directives/info-window.js</h1>
185185
}
186186
};
187187

188+
/**
189+
* provide hideInfoWindow method to scope
190+
*/
191+
scope.hideInfoWindow = scope.hideInfoWindow ||
192+
function(event, id, anchor) {
193+
var infoWindow = mapController.map.infoWindows[id];
194+
infoWindow.__template = infoWindow.__eval.apply(this, [event]);
195+
infoWindow.__compile(scope);
196+
infoWindow.close();
197+
};
198+
188199
} //link
189200
}; // return
190201
}]);// function

build/scripts/ng-map.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ ngMap.service('Attr2Options', ['$parse', 'NavigatorGeolocation', 'GeoCoder', fun
256256

257257
var args = scope.$eval("["+argsStr+"]");
258258
return function(event) {
259-
scope[funcName].apply(this, [event].concat(args));
259+
function index(obj,i) {return obj[i]}
260+
f = funcName.split('.').reduce(index, scope)
261+
f.apply(this, [event].concat(args));
260262
scope.$apply();
261263
}
262264
}
@@ -948,6 +950,17 @@ ngMap.directive('infoWindow', ['Attr2Options', '$compile', '$timeout', function(
948950
}
949951
};
950952

953+
/**
954+
* provide hideInfoWindow method to scope
955+
*/
956+
scope.hideInfoWindow = scope.hideInfoWindow ||
957+
function(event, id, anchor) {
958+
var infoWindow = mapController.map.infoWindows[id];
959+
infoWindow.__template = infoWindow.__eval.apply(this, [event]);
960+
infoWindow.__compile(scope);
961+
infoWindow.close();
962+
};
963+
951964
} //link
952965
}; // return
953966
}]);// function

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.1.8",
3+
"version": "1.2.0",
44
"main": "build/scripts/ng-map.js",
55
"dependencies": {
66
"gulp": "~3.7.0",

0 commit comments

Comments
 (0)