Skip to content

Commit

Permalink
fix animation for beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Oct 26, 2015
1 parent e64b46d commit c951815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/leaflet-heat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/HeatLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({
_initCanvas: function () {
var canvas = this._canvas = L.DomUtil.create('canvas', 'leaflet-heatmap-layer leaflet-layer');

var originProp = L.DomUtil.testProp(['transformOrigin', 'WebkitTransformOrigin', 'msTransformOrigin']);
canvas.style[originProp] = '50% 50%';

var size = this._map.getSize();
canvas.width = size.x;
canvas.height = size.y;
Expand Down

0 comments on commit c951815

Please sign in to comment.