Changeset e797ede in osmose-frontend


Ignore:
Timestamp:
Oct 20, 2014 9:00:28 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Children:
2d3be8c
Parents:
0a34689
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (20/10/2014 20:55:38)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (20/10/2014 21:00:28)
Message:

Fix bbox in permalink url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/Osmose.Export.js

    ra105db0 re797ede  
    1616  _setUrl: function (e) { 
    1717    var self = this, 
    18       urlPart; 
     18      urlPart = self._menu.urlPart(); 
     19    urlPart.bbox = self._map.getBounds().toBBoxString(); 
    1920    $("#menu-export ul a").each(function (i, a) { 
    20       urlPart = self._menu.urlPart(); 
    21       urlPart.bbox = self._map.getBounds().toBBoxString(); 
    2221      a.href = a.href.split("?")[0] + L.Util.getParamString(urlPart); 
    2322    }); 
     23    delete urlPart.bbox; 
    2424  }, 
    2525}); 
Note: See TracChangeset for help on using the changeset viewer.