Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
added canopy change functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Alicia authored and Alicia committed Nov 24, 2015
1 parent 1572de0 commit b513749
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{#if threshold}}
<div class="layer-details layer-details-biomass_loss">
<p class="canopy" title="Click the gear icon to change the tree cover canopy density">Displaying tree biomass loss with <span class="canopy-button"> > {{threshold}} %</span> canopy density.</p>
</div>
{{/if}}
6 changes: 0 additions & 6 deletions app/assets/javascripts/map/templates/legend/loss.handlebars

This file was deleted.

6 changes: 3 additions & 3 deletions app/assets/javascripts/map/views/LegendView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ define([
'handlebars',
'map/presenters/LegendPresenter',
'text!map/templates/legend/legend.handlebars',
'text!map/templates/legend/loss.handlebars',
'text!map/templates/legend/biomass_loss.handlebars',
'text!map/templates/legend/imazon.handlebars',
'text!map/templates/legend/fires.handlebars',
'text!map/templates/legend/forest2000.handlebars',
Expand All @@ -31,7 +31,7 @@ define([
'text!map/templates/legend/idn_peat.handlebars',
'text!map/templates/legend/hsdw.handlebars',

], function(_, Handlebars, Presenter, tpl, lossTpl, imazonTpl, firesTpl,
], function(_, Handlebars, Presenter, tpl, biomass_lossTpl, imazonTpl, firesTpl,
forest2000Tpl, pantropicalTpl, idnPrimaryTpl, intact2013Tpl, grumpTpl, storiesTpl, terra_iTpl, concesionesTpl, concesionesTypeTpl, hondurasForestTPL,colombiaForestChangeTPL, tigersTPL, dam_hotspotsTPL, us_land_coverTPL, global_land_coverTPL, formaTPL,bra_biomesTPL, idn_peatTPL,hsdwTPL) {

'use strict';
Expand All @@ -55,7 +55,7 @@ define([
* Optional layers detail templates.
*/
detailsTemplates: {
loss: Handlebars.compile(lossTpl),
biomass_loss: Handlebars.compile(biomass_lossTpl),
imazon: Handlebars.compile(imazonTpl),
fires: Handlebars.compile(firesTpl),
forest2000: Handlebars.compile(forest2000Tpl),
Expand Down

0 comments on commit b513749

Please sign in to comment.