git-svn-id: http://svn.openlayers.org/trunk/openlayers@852 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-02 18:43:50 +00:00
parent 50c00d35d9
commit 70af5bbb7f

View File

@@ -1,21 +1,38 @@
/* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license. /* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the full * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full
* text of the license. */ * text of the license. */
// @require: OpenLayers/Control.js // @require: OpenLayers/Control.js
/**
* @class
*/
OpenLayers.Control.Permalink = Class.create(); OpenLayers.Control.Permalink = Class.create();
OpenLayers.Control.Permalink.prototype = OpenLayers.Control.Permalink.prototype =
Object.extend( new OpenLayers.Control(), { Object.extend( new OpenLayers.Control(), {
/** @type DOMElement */
element: null, element: null,
/** @type String */
base: '', base: '',
/**
* @constructor
*
* @param {DOMElement} element
* @param {String} base
*/
initialize: function(element, base) { initialize: function(element, base) {
OpenLayers.Control.prototype.initialize.apply(this, arguments); OpenLayers.Control.prototype.initialize.apply(this, arguments);
this.element = element; this.element = element;
if (base) this.base = base; if (base) this.base = base;
}, },
/**
* @type DOMElement
*/
draw: function() { draw: function() {
OpenLayers.Control.prototype.draw.apply(this, arguments); OpenLayers.Control.prototype.draw.apply(this, arguments);
var args = OpenLayers.Util.getArgs(); var args = OpenLayers.Util.getArgs();
@@ -44,6 +61,9 @@ OpenLayers.Control.Permalink.prototype =
return this.div; return this.div;
}, },
/**
*
*/
updateLink: function() { updateLink: function() {
center = this.map.getCenter(); center = this.map.getCenter();
zoom = this.map.getZoom(); zoom = this.map.getZoom();