Skip to content

Commit

Permalink
Map page uses selected transformation. Fixes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
klokan committed Oct 17, 2015
1 parent 8331a03 commit 2cafe3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ def index(id, format):
center = (n-s)/2.0+s, (w+180 + (360-(w+180)+e+180) / 2.0 ) % 360-180
else:
center = 0,0
return template ('./templates/map', name=rname, code=rcode, center=center, bbox=mbbox)
return template ('./templates/map', name=rname, code=rcode, url_coords=url_coords, center=center, bbox=mbbox)

ref.ImportFromWkt(wkt)
ct = "text/plain"
Expand Down
4 changes: 2 additions & 2 deletions templates/map.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<h1>EPSG:{{code}} {{name}}</h1>
<p>
<a href="//epsg.io/" title="">Change coordinate system</a>
<a class="right" href="//epsg.io/{{code}}" title="">Show details</a>
<a class="right" href="//epsg.io/{{url_coords}}" title="">Show details</a>
</p>
</div>
<div id="copy-clipboard-container">
Expand All @@ -62,6 +62,6 @@
</div>
<script type="text/javascript">
map_init('{{code}}', {{bbox}}, {{center[1]}}, {{center[0]}});</script>
map_init('{{url_coords}}', {{bbox}}, {{center[1]}}, {{center[0]}});</script>
</body>
</html>

0 comments on commit 2cafe3c

Please sign in to comment.