PinchZoom.updateContainerOrigin renamed to updateContainerCenter
This commit is contained in:
@@ -76,10 +76,10 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
|
||||
var activated = OpenLayers.Control.prototype.activate.apply(this,arguments);
|
||||
if (activated) {
|
||||
this.map.events.on({
|
||||
moveend: this.updateContainerOrigin,
|
||||
moveend: this.updateContainerCenter,
|
||||
scope: this
|
||||
});
|
||||
this.updateContainerOrigin();
|
||||
this.updateContainerCenter();
|
||||
}
|
||||
return activated;
|
||||
},
|
||||
@@ -95,7 +95,7 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
|
||||
var deactivated = OpenLayers.Control.prototype.deactivate.apply(this,arguments);
|
||||
if (this.map && this.map.events) {
|
||||
this.map.events.un({
|
||||
moveend: this.updateContainerOrigin,
|
||||
moveend: this.updateContainerCenter,
|
||||
scope: this
|
||||
});
|
||||
}
|
||||
@@ -106,7 +106,7 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
|
||||
* Method: updateContainerCenter
|
||||
* Must be called each time the layer container moves.
|
||||
*/
|
||||
updateContainerOrigin: function() {
|
||||
updateContainerCenter: function() {
|
||||
var container = this.map.layerContainerDiv;
|
||||
// the layer container div is a square of 100px/100px
|
||||
this.containerCenter = {
|
||||
|
||||
Reference in New Issue
Block a user