Skip to content

Commit

Permalink
#96 switch from taxonomy id to taxonomy name
Browse files Browse the repository at this point in the history
  • Loading branch information
p-a-s-c-a-l committed May 18, 2020
1 parent c9cc33c commit 0cb12af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/CharacteriseHazardMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class CharacteriseHazardMap extends GenericMap {
// make sure to pass up the same props that your component's constructor was passed.
super({
...props,
mapSelectionId: 'eu-gl:hazard-characterization',
mapSelectionId: 'Hazard Characterization', // deprecated
groupingCriteria: 'taxonomy_term--hazards'
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/ExposureMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import GenericMap from './GenericMap';

export default class ExposureMap extends GenericMap {
constructor(props) {
super({ ...props, mapSelectionId: 'eu-gl:exposure-evaluation' });
super({ ...props, mapSelectionId: 'Exposure Evaluation' }); //deprecated

var overlays = [];
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/HazardLocalEffectsMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import GenericMap from './GenericMap';

export default class HazardLocalEffectsMap extends GenericMap {
constructor(props) {
super({ ...props, mapSelectionId: 'eu-gl:hazard-characterization:local-effects' });
super({ ...props, mapSelectionId: 'Hazard Characterization - Local Effects' }); // deprecated

var overlays = [];
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/RiskAndImpactMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class RiskAndImpactMap extends GenericMap {
constructor(props) {
super({
...props,
mapSelectionId: 'eu-gl:risk-and-impact-assessment',
mapSelectionId: 'Risk and Impact Assessment', //deprecated
groupingCriteria: 'taxonomy_term--hazards'
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/VulnerabilityMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GenericMap from './GenericMap';
*/
export default class VulnerabilityMap extends GenericMap {
constructor(props) {
super({ ...props, mapSelectionId: 'eu-gl:vulnerability-analysis' });
super({ ...props, mapSelectionId: 'Vulnerability Analysis' }); //deprecated

var overlays = [];
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/commons/BasicMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export default class BasicMap extends React.Component {
);
leafletMapModel.push(...overlayLayers);
} else {
log.warn(`NO valid CLARITY overlay Layers for ${this.overlayLayersTagType} = ${this.overlayLayersLayersTagName} with ${this.referenceType} references found in ${resourceArray.length} available resources`);
log.warn(`NO valid CLARITY overlay Layers for ${this.overlayLayersTagType} = ${this.overlayLayersTagName} with ${this.referenceType} references found in ${resourceArray.length} available resources`);
}

// Sort by name ...
Expand Down

0 comments on commit 0cb12af

Please sign in to comment.