Skip to content

Commit f9bb00b

Browse files
committed
New library version
1 parent 873b35b commit f9bb00b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dist/angular-leaflet-directive.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,10 @@
823823
leafletScope.$watch('paths', function (newPaths) {
824824
// Create the new paths
825825
for (var newName in newPaths) {
826+
if (newName.search('-') !== -1) {
827+
$log.error('[AngularJS - Leaflet] The path name "' + newName + '" is not valid. It must not include "-" and a number.');
828+
continue;
829+
}
826830
if (!isDefined(leafletPaths[newName])) {
827831
var pathData = newPaths[newName];
828832
var newPath = createPath(newName, newPaths[newName], defaults);

0 commit comments

Comments
 (0)