Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to chose to not use tileLayer at all #1062

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/angular-leaflet-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ angular.module('leaflet-directive', []).directive('leaflet', ["$q", "leafletData
}

// If no layers nor tiles defined, set the default tileLayer
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers))) {
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers)) && (!isDefined(attrs.noTiles))) {
var tileLayerObj = L.tileLayer(defaults.tileLayer, defaults.tileLayerOptions);
tileLayerObj.addTo(map);
leafletData.setTiles(tileLayerObj, attrs.id);
Expand Down Expand Up @@ -5731,4 +5731,4 @@ angular.module('leaflet-directive')
};
}]);

}(angular));
}(angular));
4 changes: 2 additions & 2 deletions dist/angular-leaflet-directive.no-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ angular.module('leaflet-directive', []).directive('leaflet', ["$q", "leafletData
}

// If no layers nor tiles defined, set the default tileLayer
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers))) {
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers)) && (!isDefined(attrs.noTiles))) {
var tileLayerObj = L.tileLayer(defaults.tileLayer, defaults.tileLayerOptions);
tileLayerObj.addTo(map);
leafletData.setTiles(tileLayerObj, attrs.id);
Expand Down Expand Up @@ -5702,4 +5702,4 @@ angular.module('leaflet-directive')
};
}]);

}(angular));
}(angular));
2 changes: 1 addition & 1 deletion src/directives/leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ angular.module('leaflet-directive', []).directive('leaflet', function($q, leafle
}

// If no layers nor tiles defined, set the default tileLayer
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers))) {
if (!isDefined(attrs.tiles) && (!isDefined(attrs.layers)) && (!isDefined(attrs.noTiles))) {
var tileLayerObj = L.tileLayer(defaults.tileLayer, defaults.tileLayerOptions);
tileLayerObj.addTo(map);
leafletData.setTiles(tileLayerObj, attrs.id);
Expand Down