Skip to content

Commit 83d4faa

Browse files
committed
v1.15.6
1 parent a638d20 commit 83d4faa

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

build/docs/NgMap.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h5>Returns:</h5>
441441
</dd>
442442
</dl><dl>
443443
<dt>
444-
<a href="source/NgMap.html#line182" class="name-link">
444+
<a href="source/NgMap.html#line184" class="name-link">
445445
<h4 class="name">
446446
setDefaultOptions
447447
<span class="signature">(options)</span>
@@ -481,7 +481,7 @@ <h5>Parameters:</h5>
481481
</dd>
482482
</dl><dl>
483483
<dt>
484-
<a href="source/NgMap.html#line157" class="name-link">
484+
<a href="source/NgMap.html#line159" class="name-link">
485485
<h4 class="name">
486486
setStyle
487487
<span class="signature">(map)</span>

build/docs/source/NgMap.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,13 @@ <h1 class="title">
296296
* @returns attribue observe function
297297
*/
298298
var observeAndSet = function(attrName, object) {
299+
console.log('observing', attrName, 'on object', object);
299300
return function(val) {
300301
if (val) {
301302
var setMethod = camelCaseFilter('set-'+attrName);
302303
var optionValue = Attr2MapOptions.toOptionValue(val, {key: attrName});
303304
if (object[setMethod]) { //if set method does exist
305+
console.log('observing', attrName, 'and setting', optionValue);
304306
/* if an location is being observed */
305307
if (attrName.match(/center|position/) &&
306308
typeof optionValue == 'string') {

build/scripts/ng-map.debug.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ angular.module('ngMap', []);
137137

138138
// set objects for lazyInit
139139
if (lazyInitMap) {
140+
141+
/**
142+
* rebuild mapOptions for lazyInit
143+
* becasue attributes values might have been changed
144+
*/
145+
var filtered = Attr2MapOptions.filter($attrs);
146+
var options = Attr2MapOptions.getOptions(filtered);
147+
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
148+
mapOptions = angular.extend(options, controlOptions);
149+
console.log('map options', mapOptions);
150+
140151
for (var group in lazyInitMap) {
141152
var groupMembers = lazyInitMap[group]; //e.g. markers
142153
if (typeof groupMembers == 'object') {
@@ -208,6 +219,7 @@ angular.module('ngMap', []);
208219
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
209220
var mapOptions = angular.extend(options, controlOptions);
210221
var mapEvents = Attr2MapOptions.getEvents($scope, filtered);
222+
console.log('ng-map Options', mapOptions);
211223
Object.keys(mapEvents).length && console.log('ng-map Events', mapEvents);
212224

213225
vm.mapOptions = mapOptions;
@@ -2908,11 +2920,13 @@ angular.module('ngMap', []);
29082920
* @returns attribue observe function
29092921
*/
29102922
var observeAndSet = function(attrName, object) {
2923+
console.log('observing', attrName, 'on object', object);
29112924
return function(val) {
29122925
if (val) {
29132926
var setMethod = camelCaseFilter('set-'+attrName);
29142927
var optionValue = Attr2MapOptions.toOptionValue(val, {key: attrName});
29152928
if (object[setMethod]) { //if set method does exist
2929+
console.log('observing', attrName, 'and setting', optionValue);
29162930
/* if an location is being observed */
29172931
if (attrName.match(/center|position/) &&
29182932
typeof optionValue == 'string') {

build/scripts/ng-map.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ angular.module('ngMap', []);
137137

138138
// set objects for lazyInit
139139
if (lazyInitMap) {
140+
141+
/**
142+
* rebuild mapOptions for lazyInit
143+
* becasue attributes values might have been changed
144+
*/
145+
var filtered = Attr2MapOptions.filter($attrs);
146+
var options = Attr2MapOptions.getOptions(filtered);
147+
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
148+
mapOptions = angular.extend(options, controlOptions);
149+
void 0;
150+
140151
for (var group in lazyInitMap) {
141152
var groupMembers = lazyInitMap[group]; //e.g. markers
142153
if (typeof groupMembers == 'object') {
@@ -208,6 +219,7 @@ angular.module('ngMap', []);
208219
var controlOptions = Attr2MapOptions.getControlOptions(filtered);
209220
var mapOptions = angular.extend(options, controlOptions);
210221
var mapEvents = Attr2MapOptions.getEvents($scope, filtered);
222+
void 0;
211223
Object.keys(mapEvents).length && void 0;
212224

213225
vm.mapOptions = mapOptions;
@@ -2906,11 +2918,13 @@ angular.module('ngMap', []);
29062918
* @returns attribue observe function
29072919
*/
29082920
var observeAndSet = function(attrName, object) {
2921+
void 0;
29092922
return function(val) {
29102923
if (val) {
29112924
var setMethod = camelCaseFilter('set-'+attrName);
29122925
var optionValue = Attr2MapOptions.toOptionValue(val, {key: attrName});
29132926
if (object[setMethod]) { //if set method does exist
2927+
void 0;
29142928
/* if an location is being observed */
29152929
if (attrName.match(/center|position/) &&
29162930
typeof optionValue == 'string') {

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.

0 commit comments

Comments
 (0)