Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit a02c304

Browse files
committed
fix(paths): Better log description with a path inside overlay error
1 parent 6e0db9e commit a02c304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/paths.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ angular.module("leaflet-directive").directive('paths', function ($log, $q, leafl
107107
}
108108

109109
if (!isDefined(layers.overlays) || !isDefined(layers.overlays[pathData.layer])) {
110-
$log.error('[AngularJS - Leaflet] A marker can only be added to a layer of type "group"');
110+
$log.error('[AngularJS - Leaflet] A path can only be added to a layer of type "group"');
111111
continue;
112112
}
113113
var layerGroup = layers.overlays[pathData.layer];
114114
if (!(layerGroup instanceof L.LayerGroup || layerGroup instanceof L.FeatureGroup)) {
115-
$log.error('[AngularJS - Leaflet] Adding a marker to an overlay needs a overlay of the type "group" or "featureGroup"');
115+
$log.error('[AngularJS - Leaflet] Adding a path to an overlay needs a overlay of the type "group" or "featureGroup"');
116116
continue;
117117
}
118118

0 commit comments

Comments
 (0)