diff --git a/js/jquery.geo.geomap.js b/js/jquery.geo.geomap.js index 1755ce8..b1adaaf 100644 --- a/js/jquery.geo.geomap.js +++ b/js/jquery.geo.geomap.js @@ -895,6 +895,7 @@ this._setInteractiveCenterAndSize( this._centerInteractive, this._getPixelSize( value ) ); this._interactiveTransform( ); this._setInteractiveTimeout( trigger ); + this._trigger( "zoomstart", window.event ); }, _createChildren: function () { @@ -1306,6 +1307,11 @@ this._centerInteractive[ 1 ] += ( ( this._options[ "axisLayout" ] === "image" ? -1 : 1 ) * dy * this._pixelSizeInteractive ); this._setInteractiveCenterAndSize( this._centerInteractive, this._pixelSizeInteractive ); this._interactiveTransform( ); + var delta, pixelCenter, pixelInteractiveCenter; + pixelCenter = this.toPixel( this._center ); + pixelInteractiveCenter = this.toPixel( this._centerInteractive ); + delta = [ Math.round( pixelCenter[0] - pixelInteractiveCenter[0] ), Math.round( pixelCenter[1] - pixelInteractiveCenter[1] ) ]; + this._trigger( "pan", window.event, { bbox: $.merge( [ ], this._options["bbox"] ), delta: delta } ); } } }, @@ -2378,6 +2384,7 @@ if ( e.deltaY !== 0 ) { if ( this._timeoutWheel ) { + this._trigger( "zoomstart", window.event ); clearTimeout( this._timeoutWheel ); this._timeoutWheel = null; }