Ticket #566: additional_permalink.patch

File additional_permalink.patch, 1.4 KB (added by crschmidt@…, 12 years ago)
  • app/views/site/index.rhtml

     
    88<%= render :partial => 'key' %>
    99<%= render :partial => 'search' %>
    1010
    11 <div id="map"></div>
     11<div id="map">
     12<div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
     13</div>
    1214
    1315<% if params['mlon'] and params['mlat'] %>
    1416<% marker = true %>
  • public/javascripts/site.js

     
    11function updatelinks(lon,lat,zoom,layers) {
    22  var node;
    33
     4  node = document.getElementById("permalinkanchor");
     5  if (node) {
     6    var args = getArgs(node.href);
     7    args["lat"] = lat;
     8    args["lon"] = lon;
     9    args["zoom"] = zoom;
     10    args["layers"] = layers;
     11    node.href = setArgs(node.href, args);
     12  }
     13
    414  node = document.getElementById("viewanchor");
    515  if (node) {
    616    var args = getArgs(node.href);
  • public/stylesheets/site.css

     
    564564  text-align: Left;
    565565  font-weight: normal;
    566566}
     567
     568#permalink {
     569  z-index:10000;
     570  position:absolute;
     571  bottom:15px;
     572  right:15px;
     573  font-size:smaller;
     574}