More specific argument type of callback method.
This commit is contained in:
@@ -224,11 +224,11 @@ ol.control.ZoomSlider.prototype.initSlider_ = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {{frameState:ol.FrameState}} evtObj The evtObj.
|
* @param {ol.MapEvent} mapEvtObj The ol.MapEvent object.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(evtObj) {
|
ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(mapEvtObj) {
|
||||||
var res = evtObj.frameState.view2DState.resolution;
|
var res = mapEvtObj.frameState.view2DState.resolution;
|
||||||
if (res !== this.currentResolution_) {
|
if (res !== this.currentResolution_) {
|
||||||
this.currentResolution_ = res;
|
this.currentResolution_ = res;
|
||||||
this.positionThumbForResolution_(res);
|
this.positionThumbForResolution_(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user