Skip to content

Commit c902741

Browse files
committed
Version 1.15.4
1 parent 5101c96 commit c902741

File tree

7 files changed

+30
-9
lines changed

7 files changed

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

build/docs/Attr2MapOptions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ <h1 class="title">
178178
<h3 class="subsection-title">Methods</h3>
179179
<dl>
180180
<dt>
181-
<a href="source/Attr2MapOptions.html#line185" class="name-link">
181+
<a href="source/Attr2MapOptions.html#line193" class="name-link">
182182
<h4 class="name">
183183
filter
184184
<span class="signature">(attrs)</span>
@@ -228,7 +228,7 @@ <h5>Returns:</h5>
228228
</dd>
229229
</dl><dl>
230230
<dt>
231-
<a href="source/Attr2MapOptions.html#line294" class="name-link">
231+
<a href="source/Attr2MapOptions.html#line302" class="name-link">
232232
<h4 class="name">
233233
getControlOptions
234234
<span class="signature">(filtered)</span>
@@ -278,7 +278,7 @@ <h5>Returns:</h5>
278278
</dd>
279279
</dl><dl>
280280
<dt>
281-
<a href="source/Attr2MapOptions.html#line248" class="name-link">
281+
<a href="source/Attr2MapOptions.html#line256" class="name-link">
282282
<h4 class="name">
283283
getEvents
284284
<span class="signature">(scope, attrs)</span>
@@ -334,7 +334,7 @@ <h5>Returns:</h5>
334334
</dd>
335335
</dl><dl>
336336
<dt>
337-
<a href="source/Attr2MapOptions.html#line212" class="name-link">
337+
<a href="source/Attr2MapOptions.html#line220" class="name-link">
338338
<h4 class="name">
339339
getOptions
340340
<span class="signature">(attrs, options)</span>

build/docs/source/Attr2MapOptions.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ <h1 class="title">
281281
}
282282
} // catch(err2)
283283
} // catch(err)
284+
// convert output more for center and position
285+
if (
286+
(options.key == 'center' || options.key == 'center') &&
287+
output instanceof Array
288+
) {
289+
output = new google.maps.LatLng(output[0], output[1]);
290+
}
284291
// convert output more for shape bounds
285292
if (options.key == 'bounds' && output instanceof Array) {
286293
output = new google.maps.LatLngBounds(output[0], output[1]);

build/scripts/ng-map.debug.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ angular.module('ngMap', []);
206206
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
207207
var mapOptions = angular.extend(options, controlOptions);
208208
var mapEvents = Attr2MapOptions.getEvents($scope, filtered);
209-
console.log('ng-map Options', mapOptions);
210209
Object.keys(mapEvents).length && console.log('ng-map Events', mapEvents);
211210

212211
vm.mapOptions = mapOptions;
@@ -2328,6 +2327,14 @@ angular.module('ngMap', []);
23282327
} // catch(err2)
23292328
} // catch(err)
23302329

2330+
// convert output more for center and position
2331+
if (
2332+
(options.key == 'center' || options.key == 'center') &&
2333+
output instanceof Array
2334+
) {
2335+
output = new google.maps.LatLng(output[0], output[1]);
2336+
}
2337+
23312338
// convert output more for shape bounds
23322339
if (options.key == 'bounds' && output instanceof Array) {
23332340
output = new google.maps.LatLngBounds(output[0], output[1]);

build/scripts/ng-map.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ angular.module('ngMap', []);
206206
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
207207
var mapOptions = angular.extend(options, controlOptions);
208208
var mapEvents = Attr2MapOptions.getEvents($scope, filtered);
209-
void 0;
210209
Object.keys(mapEvents).length && void 0;
211210

212211
vm.mapOptions = mapOptions;
@@ -2326,6 +2325,14 @@ angular.module('ngMap', []);
23262325
} // catch(err2)
23272326
} // catch(err)
23282327

2328+
// convert output more for center and position
2329+
if (
2330+
(options.key == 'center' || options.key == 'center') &&
2331+
output instanceof Array
2332+
) {
2333+
output = new google.maps.LatLng(output[0], output[1]);
2334+
}
2335+
23292336
// convert output more for shape bounds
23302337
if (options.key == 'bounds' && output instanceof Array) {
23312338
output = new google.maps.LatLngBounds(output[0], output[1]);

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.15.3",
3+
"version": "1.15.4",
44
"main": "build/scripts/ng-map.js",
55
"dependencies": {},
66
"engines": {

0 commit comments

Comments
 (0)