Skip to content

Commit

Permalink
fix black emptyImageUrl on IE, close #541
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Nov 13, 2017
1 parent d419883 commit 95d38c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,12 @@ export function computeDegree(p1, p2) {
}

/**
* from Leaflet.
* Data URI string containing a base64-encoded empty GIF image.
* Used as a hack to free memory from unused images on WebKit-powered
* mobile devices (by setting image `src` to this string).
* Transparent 1X1 gif image
* from https://css-tricks.com/snippets/html/base64-encode-of-1x1px-transparent-gif/
* @type {String}
* @memberOf Util
*/
export const emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
export const emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';


/**
Expand Down

0 comments on commit 95d38c6

Please sign in to comment.