Declared vars in Permalink.js as lexical.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -65,10 +65,10 @@ OpenLayers.Control.Permalink.prototype =
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
updateLink: function() {
|
updateLink: function() {
|
||||||
center = this.map.getCenter();
|
var center = this.map.getCenter();
|
||||||
zoom = this.map.getZoom();
|
var zoom = this.map.getZoom();
|
||||||
lat = Math.round(center.lat*100000)/100000;
|
var lat = Math.round(center.lat*100000)/100000;
|
||||||
lon = Math.round(center.lon*100000)/100000;
|
var lon = Math.round(center.lon*100000)/100000;
|
||||||
this.element.href = this.base+"?lat="+lat+"&lon="+lon+"&zoom="+zoom;
|
this.element.href = this.base+"?lat="+lat+"&lon="+lon+"&zoom="+zoom;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user