Skip to content

Commit

Permalink
fix(markers): Solved a critical bug not rendering any markers. Thanks…
Browse files Browse the repository at this point in the history
… to @juanmanavarro for reporting here:

#1017
  • Loading branch information
tombatossals committed Nov 6, 2015
1 parent 24b9cdb commit 15323bc
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
20 changes: 10 additions & 10 deletions dist/angular-leaflet-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ angular.module('leaflet-directive').service('leafletData', ["$log", "$q", "leafl
'geoJSON',
'UTFGrid', //odd ball on naming convention keeping to not break
'decorations',
'directiveControls', ];
'directiveControls',];

//init
_privateItems.forEach(function(itemName) {
Expand Down Expand Up @@ -5147,7 +5147,7 @@ angular.module('leaflet-directive').directive('tiles', ["$log", "leafletData", "
});
},
};
}, ]);
},]);
});

angular.module('leaflet-directive')
Expand All @@ -5160,7 +5160,7 @@ angular.module('leaflet-directive')

var EventsHelper = function(rootBroadcastName, lObjectType) {
this.rootBroadcastName = rootBroadcastName;
$log.debug('leafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);
$log.debug('LeafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);

//used to path/key out certain properties based on the type , "markers", "geojson"
this.lObjectType = lObjectType;
Expand Down Expand Up @@ -5317,10 +5317,10 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletGeoJsonEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", "leafletData", function($rootScope, $q, $log, leafletHelpers,
leafletEventsHelpersFactory, leafletData) {
.factory('leafletGeoJsonEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", "leafletData", function($rootScope, $q, $log, leafletHelpers,
LeafletEventsHelpersFactory, leafletData) {
var safeApply = leafletHelpers.safeApply;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var GeoJsonEvents = function() {
EventsHelper.call(this, 'leafletDirectiveGeoJson', 'geojson');
Expand Down Expand Up @@ -5365,9 +5365,9 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletLabelEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory) {
.factory('leafletLabelEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory) {
var Helpers = leafletHelpers;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var LabelEvents = function() {
EventsHelper.call(this, 'leafletDirectiveLabel', 'markers');
Expand Down Expand Up @@ -5509,12 +5509,12 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletMarkerEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", "leafletLabelEvents", function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory, leafletLabelEvents) {
.factory('leafletMarkerEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", "leafletLabelEvents", function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory, leafletLabelEvents) {
var safeApply = leafletHelpers.safeApply;
var isDefined = leafletHelpers.isDefined;
var Helpers = leafletHelpers;
var lblHelp = leafletLabelEvents;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var MarkerEvents = function() {
EventsHelper.call(this, 'leafletDirectiveMarker', 'markers');
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-leaflet-directive.min.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions dist/angular-leaflet-directive.no-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ angular.module('leaflet-directive').service('leafletData', ["$log", "$q", "leafl
'geoJSON',
'UTFGrid', //odd ball on naming convention keeping to not break
'decorations',
'directiveControls', ];
'directiveControls',];

//init
_privateItems.forEach(function(itemName) {
Expand Down Expand Up @@ -5118,7 +5118,7 @@ angular.module('leaflet-directive').directive('tiles', ["$log", "leafletData", "
});
},
};
}, ]);
},]);
});

angular.module('leaflet-directive')
Expand All @@ -5131,7 +5131,7 @@ angular.module('leaflet-directive')

var EventsHelper = function(rootBroadcastName, lObjectType) {
this.rootBroadcastName = rootBroadcastName;
$log.debug('leafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);
$log.debug('LeafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);

//used to path/key out certain properties based on the type , "markers", "geojson"
this.lObjectType = lObjectType;
Expand Down Expand Up @@ -5288,10 +5288,10 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletGeoJsonEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", "leafletData", function($rootScope, $q, $log, leafletHelpers,
leafletEventsHelpersFactory, leafletData) {
.factory('leafletGeoJsonEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", "leafletData", function($rootScope, $q, $log, leafletHelpers,
LeafletEventsHelpersFactory, leafletData) {
var safeApply = leafletHelpers.safeApply;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var GeoJsonEvents = function() {
EventsHelper.call(this, 'leafletDirectiveGeoJson', 'geojson');
Expand Down Expand Up @@ -5336,9 +5336,9 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletLabelEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory) {
.factory('leafletLabelEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory) {
var Helpers = leafletHelpers;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var LabelEvents = function() {
EventsHelper.call(this, 'leafletDirectiveLabel', 'markers');
Expand Down Expand Up @@ -5480,12 +5480,12 @@ angular.module('leaflet-directive')
}]);

angular.module('leaflet-directive')
.factory('leafletMarkerEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "leafletEventsHelpersFactory", "leafletLabelEvents", function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory, leafletLabelEvents) {
.factory('leafletMarkerEvents', ["$rootScope", "$q", "$log", "leafletHelpers", "LeafletEventsHelpersFactory", "leafletLabelEvents", function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory, leafletLabelEvents) {
var safeApply = leafletHelpers.safeApply;
var isDefined = leafletHelpers.isDefined;
var Helpers = leafletHelpers;
var lblHelp = leafletLabelEvents;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var MarkerEvents = function() {
EventsHelper.call(this, 'leafletDirectiveMarker', 'markers');
Expand Down
2 changes: 1 addition & 1 deletion src/directives/watchOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
});
},
};
}, ]);
},]);
});
2 changes: 1 addition & 1 deletion src/services/events/leafletEventsHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ angular.module('leaflet-directive')

var EventsHelper = function(rootBroadcastName, lObjectType) {
this.rootBroadcastName = rootBroadcastName;
$log.debug('leafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);
$log.debug('LeafletEventsHelpersFactory: lObjectType: ' + lObjectType + 'rootBroadcastName: ' + rootBroadcastName);

//used to path/key out certain properties based on the type , "markers", "geojson"
this.lObjectType = lObjectType;
Expand Down
4 changes: 2 additions & 2 deletions src/services/events/leafletGeoJsonEvents.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular.module('leaflet-directive')
.factory('leafletGeoJsonEvents', function($rootScope, $q, $log, leafletHelpers,
leafletEventsHelpersFactory, leafletData) {
LeafletEventsHelpersFactory, leafletData) {
var safeApply = leafletHelpers.safeApply;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var GeoJsonEvents = function() {
EventsHelper.call(this, 'leafletDirectiveGeoJson', 'geojson');
Expand Down
4 changes: 2 additions & 2 deletions src/services/events/leafletLabelEvents.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular.module('leaflet-directive')
.factory('leafletLabelEvents', function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory) {
.factory('leafletLabelEvents', function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory) {
var Helpers = leafletHelpers;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var LabelEvents = function() {
EventsHelper.call(this, 'leafletDirectiveLabel', 'markers');
Expand Down
4 changes: 2 additions & 2 deletions src/services/events/leafletMarkerEvents.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
angular.module('leaflet-directive')
.factory('leafletMarkerEvents', function($rootScope, $q, $log, leafletHelpers, leafletEventsHelpersFactory, leafletLabelEvents) {
.factory('leafletMarkerEvents', function($rootScope, $q, $log, leafletHelpers, LeafletEventsHelpersFactory, leafletLabelEvents) {
var safeApply = leafletHelpers.safeApply;
var isDefined = leafletHelpers.isDefined;
var Helpers = leafletHelpers;
var lblHelp = leafletLabelEvents;
var EventsHelper = leafletEventsHelpersFactory;
var EventsHelper = LeafletEventsHelpersFactory;

var MarkerEvents = function() {
EventsHelper.call(this, 'leafletDirectiveMarker', 'markers');
Expand Down
2 changes: 1 addition & 1 deletion src/services/leafletData.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ angular.module('leaflet-directive').service('leafletData', function($log, $q, le
'geoJSON',
'UTFGrid', //odd ball on naming convention keeping to not break
'decorations',
'directiveControls', ];
'directiveControls',];

//init
_privateItems.forEach(function(itemName) {
Expand Down

0 comments on commit 15323bc

Please sign in to comment.