Skip to content

Commit

Permalink
#50 support South Polar projection
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Nov 9, 2016
1 parent da1a348 commit 162ea8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions WebContent/firms.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<!-- Fisheries -->
<div id="resourceSwitcherPanelFishery">
<input type="radio" name="SelectLayer" onchange="FV.switchLayer(this.value)" value="fishery" id="resourceSwitcher-fishery" />
<label for="resourceSwitcher-fishery">Fisheries</label>
<label for="resourceSwitcher-fishery">Marine Fisheries</label>
<!-- Filters -->
<ul class="category-filters">
<li>
Expand Down Expand Up @@ -192,7 +192,10 @@ <h4>Projection</h4>
<input type="radio" name="SelectSRS" onchange="FV.switchProjection(this.value)" value="54009" id="SelectSRS54009" />
<label for="SelectSRS54009">Mollweide (54009)</label>
</div>

<div>
<input type="radio" name="SelectSRS" onchange="FV.switchProjection(this.value)" value="3031" id="SelectSRS3031" />
<label for="SelectSRS3031">South Polar (3031)</label>
</div>
<blockquote>
</div>
<div id="linkPanel" class="sidePanel" onmouseover="FV.setViewerEmbedLink()">
Expand Down
4 changes: 3 additions & 1 deletion WebContent/js/firms/firms.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ FV.currentProjection = function( p ) {
if ( document.getElementById('SelectSRS4326').checked ) cp = '4326';
if ( ! cp ) if ( document.getElementById('SelectSRS3349').checked ) cp = '3349';
if ( ! cp ) if ( document.getElementById('SelectSRS54009').checked ) cp = '54009';
if ( ! cp ) if ( document.getElementById('SelectSRS3031').checked ) cp = '3031';

if ( ! cp ) {
document.getElementById('SelectSRS4326').checked = true;
cp = '4326';
Expand All @@ -372,7 +374,7 @@ FV.currentProjection = function( p ) {
document.getElementById('SelectSRS4326').checked = ( p == '4326');
document.getElementById('SelectSRS3349').checked = ( p == '3349');
document.getElementById('SelectSRS54009').checked = ( p == '54009');

document.getElementById('SelectSRS3031').checked = ( p == '3031');
}
FV.lastProjection = parseInt( p );
return FV.lastProjection;
Expand Down

0 comments on commit 162ea8a

Please sign in to comment.