Skip to content

Commit

Permalink
#81 :heavy_minus_sign default selection of background layers
Browse files Browse the repository at this point in the history
  • Loading branch information
p-a-s-c-a-l committed Feb 5, 2020
1 parent 119df06 commit c6a0a21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarity-map-component",
"version": "2.4.4",
"version": "2.4.5",
"private": true,
"license": "LGPL",
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions src/components/commons/BasicMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default class BasicMap extends React.Component {
const groupTitle = this.extractGroupName(groupingCriteria, defaultGroupName, resource, includedArray);
const leafletLayer = this.createLeafletLayer(groupTitle, title, layerUrl);
return leafletLayer;
}.bind(this); // yes, need to bind to this.
}.bind(this); // yes, need to bind to this.

// Create separate Layers for each Reference?
if (resourceReferences.length > 1) {
Expand Down Expand Up @@ -353,7 +353,6 @@ export default class BasicMap extends React.Component {
}
}
} else {

const leafletLayer = prepareLayer(uri, title);
if (leafletLayer && leafletLayer !== null) {
leafletLayers.push(leafletLayer);
Expand Down Expand Up @@ -549,9 +548,11 @@ export default class BasicMap extends React.Component {
}
});

// Disabled by request. See #81
/*
if (leafletMapModel.length > 0) {
leafletMapModel[0].checked = true;
}
}*/

return leafletMapModel;
}
Expand Down

0 comments on commit c6a0a21

Please sign in to comment.