Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
OpenLayers.Layer = Class.create();
|
||||
|
||||
OpenLayers.Layer.prototype = {
|
||||
// str: name
|
||||
name: null,
|
||||
|
||||
// DOMElement: div
|
||||
div: null,
|
||||
|
||||
// OpenLayers.Map
|
||||
map: null,
|
||||
|
||||
/**
|
||||
* @param {str} name
|
||||
*/
|
||||
initialize: function(name) {
|
||||
this.name = name;
|
||||
},
|
||||
|
||||
/**
|
||||
* Destroy is a destructor: this is to alleviate cyclic references which
|
||||
* the Javascript garbage cleaner can not take care of on its own.
|
||||
*/
|
||||
destroy: function() {
|
||||
this.map = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* @params {OpenLayers.Bounds} bound
|
||||
* @params {bool} zoomChanged tells when zoom has changed, as layers have to do some init work in that case.
|
||||
*/
|
||||
moveTo: function (bound,zoomChanged) {
|
||||
// not implemented here
|
||||
return;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user