Skip to content

Commit e335e8f

Browse files
committed
Version 1.16.0
1 parent 9d6eae9 commit e335e8f

22 files changed

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

build/docs/source/Attr2MapOptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ <h1 class="title">
499499
}
500500
controlOptions[attr] = options;
501501
} catch (e) {
502-
console.error('invald option for', attr, newValue, e, e.stack);
502+
$log.error('invald option for', attr, newValue, e, e.stack);
503503
}
504504
}
505505
} // for

build/docs/source/NavigatorGeolocation.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h1 class="title">
181181
/* global google */
182182
(function() {
183183
'use strict';
184-
var $q;
184+
var $q, $log;
185185
/**
186186
* @memberof NavigatorGeolocation
187187
* @param {Object} geoLocationOptions the navigator geolocations options.
@@ -213,7 +213,7 @@ <h1 class="title">
213213
function(position) {
214214
deferred.resolve(position);
215215
}, function(evt) {
216-
console.error(evt);
216+
$log.error(evt);
217217
deferred.reject(evt);
218218
},
219219
geoLocationOptions
@@ -223,13 +223,13 @@ <h1 class="title">
223223
}
224224
return deferred.promise;
225225
};
226-
var NavigatorGeolocation = function(_$q_) {
227-
$q = _$q_;
226+
var NavigatorGeolocation = function(_$q_, _$log_) {
227+
$q = _$q_; $log = _$log_;
228228
return {
229229
getCurrentPosition: getCurrentPosition
230230
};
231231
};
232-
NavigatorGeolocation.$inject = ['$q'];
232+
NavigatorGeolocation.$inject = ['$q', '$log'];
233233
angular.module('ngMap').
234234
service('NavigatorGeolocation', NavigatorGeolocation);
235235
})();

build/docs/source/NgMap.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ <h1 class="title">
179179
*/
180180
(function() {
181181
'use strict';
182-
var $window, $document, $q;
182+
var $window, $document, $q, $log;
183183
var NavigatorGeolocation, Attr2MapOptions, GeoCoder, camelCaseFilter;
184184
var mapControllers = {};
185185
var getStyle = function(el, styleProp) {
@@ -204,7 +204,7 @@ <h1 class="title">
204204
ctrl.initializeMap();
205205
return ctrl.map;
206206
} else {
207-
console.error('map is already instialized');
207+
$log.error('map is already instialized');
208208
}
209209
};
210210
/**
@@ -363,13 +363,14 @@ <h1 class="title">
363363
defaultOptions = options;
364364
};
365365
var NgMap = function(
366-
_$window_, _$document_, _$q_,
366+
_$window_, _$document_, _$q_, _$log_,
367367
_NavigatorGeolocation_, _Attr2MapOptions_,
368368
_GeoCoder_, _camelCaseFilter_
369369
) {
370370
$window = _$window_;
371371
$document = _$document_[0];
372372
$q = _$q_;
373+
$log = _$log_;
373374
NavigatorGeolocation = _NavigatorGeolocation_;
374375
Attr2MapOptions = _Attr2MapOptions_;
375376
GeoCoder = _GeoCoder_;
@@ -386,7 +387,7 @@ <h1 class="title">
386387
};
387388
};
388389
NgMap.$inject = [
389-
'$window', '$document', '$q',
390+
'$window', '$document', '$q', '$log',
390391
'NavigatorGeolocation', 'Attr2MapOptions',
391392
'GeoCoder', 'camelCaseFilter'
392393
];

build/docs/source/bicycling-layer.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ <h1 class="title">
188188
*/
189189
(function() {
190190
'use strict';
191-
var parser;
191+
var $log, parser;
192192
var linkFunc = function(scope, element, attrs, mapController) {
193193
mapController = mapController[0]||mapController[1];
194194
var orgAttrs = parser.orgAttributes(element);
195195
var filtered = parser.filter(attrs);
196196
var options = parser.getOptions(filtered, {scope: scope});
197197
var events = parser.getEvents(scope, filtered);
198-
console.log('bicycling-layer options', options, 'events', events);
198+
$log.debug('bicycling-layer options', options, 'events', events);
199199
var layer = getLayer(options, events);
200200
mapController.addObject('bicyclingLayers', layer);
201201
mapController.observeAttrSetObj(orgAttrs, attrs, layer); //observers
@@ -210,15 +210,15 @@ <h1 class="title">
210210
}
211211
return layer;
212212
};
213-
var bicyclingLayer= function(Attr2MapOptions) {
214-
parser = Attr2MapOptions;
213+
var bicyclingLayer= function(_$log_, Attr2MapOptions) {
214+
$log = _$log_, parser = Attr2MapOptions;
215215
return {
216216
restrict: 'E',
217217
require: ['?^map','?^ngMap'],
218218
link: linkFunc
219219
};
220220
};
221-
bicyclingLayer.$inject = ['Attr2MapOptions'];
221+
bicyclingLayer.$inject = ['$log', 'Attr2MapOptions'];
222222
angular.module('ngMap').directive('bicyclingLayer', bicyclingLayer);
223223
})();
224224
</code></pre>

build/docs/source/directions.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1 class="title">
201201
/* global document */
202202
(function() {
203203
'use strict';
204-
var NgMap, $timeout, NavigatorGeolocation;
204+
var NgMap, $timeout, $log, NavigatorGeolocation;
205205
var getDirectionsRenderer = function(options, events) {
206206
if (options.panel) {
207207
options.panel = document.getElementById(options.panel) ||
@@ -258,10 +258,11 @@ <h1 class="title">
258258
}
259259
};
260260
var directions = function(
261-
Attr2MapOptions, _$timeout_, _NavigatorGeolocation_, _NgMap_) {
261+
Attr2MapOptions, _$timeout_, _$log_, _NavigatorGeolocation_, _NgMap_) {
262262
var parser = Attr2MapOptions;
263263
NgMap = _NgMap_;
264264
$timeout = _$timeout_;
265+
$log = _$log_;
265266
NavigatorGeolocation = _NavigatorGeolocation_;
266267
var linkFunc = function(scope, element, attrs, mapController) {
267268
mapController = mapController[0]||mapController[1];
@@ -279,12 +280,12 @@ <h1 class="title">
279280
$timeout(function(){
280281
var panel =
281282
document.getElementById(val) || document.querySelector(val);
282-
console.log('setting ', attrName, 'with value', panel);
283+
$log.debug('setting ', attrName, 'with value', panel);
283284
panel && renderer.setPanel(panel);
284285
});
285286
} else if (options[attrName] !== val) { //apply only if changed
286287
var optionValue = parser.toOptionValue(val, {key: attrName});
287-
console.log('setting ', attrName, 'with value', optionValue);
288+
$log.debug('setting ', attrName, 'with value', optionValue);
288289
options[attrName] = optionValue;
289290
updateRoute(renderer, options);
290291
}
@@ -305,7 +306,7 @@ <h1 class="title">
305306
};
306307
}; // var directions
307308
directions.$inject =
308-
['Attr2MapOptions', '$timeout', 'NavigatorGeolocation', 'NgMap'];
309+
['Attr2MapOptions', '$timeout', '$log', 'NavigatorGeolocation', 'NgMap'];
309310
angular.module('ngMap').directive('directions', directions);
310311
})();
311312
</code></pre>

build/docs/source/fusion-tables-layer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h1 class="title">
190190
(function() {
191191
'use strict';
192192
angular.module('ngMap').directive('fusionTablesLayer', [
193-
'Attr2MapOptions', function(Attr2MapOptions) {
193+
'$log', 'Attr2MapOptions', function($log, Attr2MapOptions) {
194194
var parser = Attr2MapOptions;
195195
var getLayer = function(options, events) {
196196
var layer = new google.maps.FusionTablesLayer(options);
@@ -207,7 +207,7 @@ <h1 class="title">
207207
var filtered = parser.filter(attrs);
208208
var options = parser.getOptions(filtered, {scope: scope});
209209
var events = parser.getEvents(scope, filtered, events);
210-
console.log('fusion-tables-layer options', options, 'events', events);
210+
$log.debug('fusion-tables-layer options', options, 'events', events);
211211
var layer = getLayer(options, events);
212212
mapController.addObject('fusionTablesLayers', layer);
213213
}

build/docs/source/heatmap-layer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ <h1 class="title">
188188
(function() {
189189
'use strict';
190190
angular.module('ngMap').directive('heatmapLayer', [
191-
'Attr2MapOptions', '$window', function(Attr2MapOptions, $window) {
191+
'Attr2MapOptions', '$window', '$log', function(Attr2MapOptions, $window, $log) {
192192
var parser = Attr2MapOptions;
193193
return {
194194
restrict: 'E',
@@ -211,7 +211,7 @@ <h1 class="title">
211211
* set events
212212
*/
213213
var events = parser.getEvents(scope, filtered);
214-
console.log('heatmap-layer options', layer, 'events', events);
214+
$log.debug('heatmap-layer options', layer, 'events', events);
215215
mapController.addObject('heatmapLayers', layer);
216216
}
217217
}; // return

build/docs/source/kml-layer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1 class="title">
201201
(function() {
202202
'use strict';
203203
angular.module('ngMap').directive('kmlLayer', [
204-
'Attr2MapOptions', function(Attr2MapOptions) {
204+
'$log', 'Attr2MapOptions', function($log, Attr2MapOptions) {
205205
var parser = Attr2MapOptions;
206206
var getKmlLayer = function(options, events) {
207207
var kmlLayer = new google.maps.KmlLayer(options);
@@ -219,7 +219,7 @@ <h1 class="title">
219219
var filtered = parser.filter(attrs);
220220
var options = parser.getOptions(filtered, {scope: scope});
221221
var events = parser.getEvents(scope, filtered);
222-
console.log('kml-layer options', options, 'events', events);
222+
$log.debug('kml-layer options', options, 'events', events);
223223
var kmlLayer = getKmlLayer(options, events);
224224
mapController.addObject('kmlLayers', kmlLayer);
225225
mapController.observeAttrSetObj(orgAttrs, attrs, kmlLayer); //observers

build/docs/source/map-data.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ <h1 class="title">
192192
(function() {
193193
'use strict';
194194
angular.module('ngMap').directive('mapData', [
195-
'Attr2MapOptions', 'NgMap', function(Attr2MapOptions, NgMap) {
195+
'$log', 'Attr2MapOptions', 'NgMap', function($log, Attr2MapOptions, NgMap) {
196196
var parser = Attr2MapOptions;
197197
return {
198198
restrict: 'E',
@@ -201,7 +201,7 @@ <h1 class="title">
201201
var filtered = parser.filter(attrs);
202202
var options = parser.getOptions(filtered, {scope: scope});
203203
var events = parser.getEvents(scope, filtered, events);
204-
console.log('map-data options', options);
204+
$log.debug('map-data options', options);
205205
NgMap.getMap().then(function(map) {
206206
//options
207207
for (var key in options) {

0 commit comments

Comments
 (0)