Fix magnify example using right postrender events
This commit is contained in:
committed by
Tim Schaub
parent
3cba5ffbe2
commit
c5b7c5febb
+1
-1
@@ -48,7 +48,7 @@ container.addEventListener('mouseout', function() {
|
||||
});
|
||||
|
||||
// after rendering the layer, show an oversampled version around the pointer
|
||||
imagery.on('postcompose', function(event) {
|
||||
imagery.on('postrender', function(event) {
|
||||
if (mousePosition) {
|
||||
const context = event.context;
|
||||
const pixelRatio = event.frameState.pixelRatio;
|
||||
|
||||
Reference in New Issue
Block a user