Skip to content

Commit

Permalink
Fix fade in issues (#21, #22).
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetroff committed Jan 27, 2020
1 parent 69d4a24 commit 4715686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Print Maps - High-resolution maps in the browser, for printing
* Copyright (c) 2015-2018 Matthew Petroff
* Copyright (c) 2015-2020 Matthew Petroff
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -431,7 +431,7 @@ function createPrintMap(width, height, dpi, format, unit, zoom, center,
fadeDuration: 0,
attributionControl: false
});
renderMap.once('load', function() {
renderMap.once('idle', function() {
if (format == 'png') {
renderMap.getCanvas().toBlob(function(blob) {
saveAs(blob, 'map.png');
Expand Down

0 comments on commit 4715686

Please sign in to comment.