Skip to content

Commit

Permalink
[UPD] remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Jan 25, 2020
1 parent f6e1883 commit a2a78ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
32 changes: 16 additions & 16 deletions examples/misc/map.animatedcanvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ <h1>ol-ext: Animated canvas Overlay</h1>
layers: layers
});

// Raindrop
var raindrop = new ol.Overlay.AnimatedCanvas({
particule: ol.particule.RainDrop,
size: [50,50],
density: 1,
speed: 5
// Birds
var birds = new ol.Overlay.AnimatedCanvas({
particule: ol.particule.Bird,
density: .1,
angle: Math.PI/3,
speed: 2
});
raindrop.setVisible(false);
map.addOverlay(raindrop);
birds.setVisible(false);
map.addOverlay(birds);

// Rain
var rain = new ol.Overlay.AnimatedCanvas({
Expand Down Expand Up @@ -151,15 +151,15 @@ <h1>ol-ext: Animated canvas Overlay</h1>
cloud2.setVisible(false);
map.addOverlay(cloud2);

// Birds
var birds = new ol.Overlay.AnimatedCanvas({
particule: ol.particule.Bird,
density: .1,
angle: Math.PI/3,
speed: 2
// Raindrop
var raindrop = new ol.Overlay.AnimatedCanvas({
particule: ol.particule.RainDrop,
size: [50,50],
density: 1,
speed: 5
});
birds.setVisible(false);
map.addOverlay(birds);
raindrop.setVisible(false);
map.addOverlay(raindrop);

</script>

Expand Down
1 change: 0 additions & 1 deletion src/particule/RainDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ ol_particule_RainDrop.prototype.draw = function(ctx) {
ctx.save();
ctx.translate (this.coordinate[0], this.coordinate[1]);
ctx.globalAlpha = this.size/50;
console.log(this.z);
ctx.scale(1-this.size/50,1-this.size/50);
ctx.drawImage(this.image, -50,-50);
ctx.restore();
Expand Down

0 comments on commit a2a78ec

Please sign in to comment.