Skip to content

Commit

Permalink
For transformation show projected CRS.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPohys committed Feb 14, 2014
1 parent fa68516 commit 8d66da2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 20 deletions.
3 changes: 2 additions & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ h4, .h4 { margin: 20px 0 13px 0; padding: 0; font-size: 16px; color: #000; }

.btn-link-container a:hover { text-decoration: none; background: #03639B; }
.btn-link-container a:hover i { border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) #fff; }

#projected-link-trans a:hover span { color: #4295c5; text-decoration: none; }

.transformations-container { width: 350px; }
.transformations-container-inner { height: 380px; overflow-y: scroll; }
.transformations-container-inner ul li { margin-bottom: 7px; }
Expand Down
62 changes: 43 additions & 19 deletions templates/detail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,34 @@
%end
</div>
<div class="cac-inner">
%if default_trans:
<a href="{{url_area_trans}}">{{default_trans['area']}}</a>
%elif item['area'] and (url_area):
<a href="{{url_area}}">{{item['area']}}</a>
%end
%found_trans = False
%if item['kind'].startswith("COORDOP"):
<p></p>
%found_trans = True
<div id="projected-link-trans">
%if projcrs_by_gcrs:
<h3 class="underline-style">Coordinates on a map</h3>
%end
%for r in projcrs_by_gcrs:
<a href="/{{r['result']['code']}}/map"><span class="caption">{{r['result']['name']}}</span></a>
code <a href="{{r['result']['code']}}">{{r['result']['code']}}</a><br />
%end
%if more_gcrs_result:
<a href="{{more_gcrs_result}}">More</a>
%end
</div>
%end
</div>
</div>
<div class="detail-content-inner-wide">
Expand Down Expand Up @@ -801,29 +824,30 @@
</div>
%end
</div>
<div id="projected-link">
%if projcrs_by_gcrs:
%if kind == "Projected coordinate system":
<h3>Coordinates with same geodetic base (<a href="/{{item['geogcrs'][0]}}">{{item['geogcrs'][1]}}</a>):</h3>
%else:
<h3>Coordinates using this {{kind.lower()}}:</h3>
%if found_trans == False:
<div id="projected-link">
%if projcrs_by_gcrs:
%if kind == "Projected coordinate system":
<h3>Coordinates with same geodetic base (<a href="/{{item['geogcrs'][0]}}">{{item['geogcrs'][1]}}</a>):</h3>
%else:
<h3>Coordinates using this {{kind.lower()}}:</h3>
%end
%end
%end
%for r in projcrs_by_gcrs:
<a href="/{{r['result']['code']}}">EPSG:{{r['result']['code']}} {{r['result']['name']}}</a>
%if r['result']['code_trans']:
<a href="{{r['result']['code']}}/map"> (map)</a> <br />
%else:
<br />
%for r in projcrs_by_gcrs:
<a href="/{{r['result']['code']}}">EPSG:{{r['result']['code']}} {{r['result']['name']}}</a>
%if r['result']['code_trans']:
<a href="{{r['result']['code']}}/map"> (map)</a> <br />
%else:
<br />
%end
%end
%end
%if more_gcrs_result:
<a href="{{more_gcrs_result}}">More</a>
%end
</div>
%if more_gcrs_result:
<a href="{{more_gcrs_result}}">More</a>
%end
</div>
%end
</div>
Expand Down

0 comments on commit 8d66da2

Please sign in to comment.