Merge pull request #9091 from jahow/fix-heatmap-ie
Fix heatmap example in IE
This commit is contained in:
@@ -43,11 +43,14 @@ const map = new Map({
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const blurHandler = function() {
|
||||||
blur.addEventListener('input', function() {
|
|
||||||
vector.setBlur(parseInt(blur.value, 10));
|
vector.setBlur(parseInt(blur.value, 10));
|
||||||
});
|
};
|
||||||
|
blur.addEventListener('input', blurHandler);
|
||||||
|
blur.addEventListener('change', blurHandler);
|
||||||
|
|
||||||
radius.addEventListener('input', function() {
|
const radiusHandler = function() {
|
||||||
vector.setRadius(parseInt(radius.value, 10));
|
vector.setRadius(parseInt(radius.value, 10));
|
||||||
});
|
};
|
||||||
|
radius.addEventListener('input', radiusHandler);
|
||||||
|
radius.addEventListener('change', radiusHandler);
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
} from '../transform';
|
} from '../transform';
|
||||||
import {create, fromTransform} from '../vec/mat4';
|
import {create, fromTransform} from '../vec/mat4';
|
||||||
import WebGLPostProcessingPass from './PostProcessingPass';
|
import WebGLPostProcessingPass from './PostProcessingPass';
|
||||||
|
import {getContext} from '../webgl';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -220,7 +221,7 @@ class WebGLHelper extends Disposable {
|
|||||||
* @private
|
* @private
|
||||||
* @type {WebGLRenderingContext}
|
* @type {WebGLRenderingContext}
|
||||||
*/
|
*/
|
||||||
this.gl_ = this.canvas_.getContext('webgl');
|
this.gl_ = getContext(this.canvas_);
|
||||||
const gl = this.getGL();
|
const gl = this.getGL();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user