Skip to content

Commit

Permalink
version 2.2.0 and bump LBL to 1.7.0 (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean authored and jywarren committed Jan 28, 2020
1 parent 86613f8 commit 4109b58
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 105 deletions.
10 changes: 5 additions & 5 deletions dist/LeafletEnvironmentalLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25857,9 +25857,6 @@ L.LayerGroup.environmentalLayers = L.LayerGroup.extend(
embed: false, // activates layers on map by default if true.
currentHash: location.hash,
addLayersToMap: false,
defaultBaseLayer: L.tileLayer('https://a.tiles.mapbox.com/v3/jywarren.map-lmrwb2em/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
}),
// Source of Truth of Layers name .
// please put name of Layers carefully in the the appropriate layer group.
layers0: ['PLpeople', 'purpleLayer', 'toxicReleaseLayer', 'pfasLayer', 'aqicnLayer', 'osmLandfillMineQuarryLayer', 'Unearthing'],
Expand Down Expand Up @@ -25926,8 +25923,11 @@ L.LayerGroup.environmentalLayers = L.LayerGroup.extend(
this._map = map;
this.overlayMaps = {};
this.groupedOverlayMaps = {}; // For grouping layers in the new menu
var baseMaps = this.options.baseLayers ? this.options.baseLayers : { "Grey-scale": this.options.defaultBaseLayer.addTo(map) };

var defaultBaseLayer = L.tileLayer('https://a.tiles.mapbox.com/v3/jywarren.map-lmrwb2em/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
});
var baseMaps = this.options.baseLayers ? this.options.baseLayers : { "Grey-scale": defaultBaseLayer.addTo(map) };

for (let layer of this.options.layers.include) {
if (this.options.layers0.includes(layer)) {
this.overlayMaps[layer] = window['L']['layerGroup'][layer]();
Expand Down
Loading

0 comments on commit 4109b58

Please sign in to comment.