Skip to content

Commit

Permalink
Need to do the shadow too
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed Jul 2, 2012
1 parent 1667465 commit 914204f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/layer/marker/Marker.js
Expand Up @@ -31,8 +31,14 @@ L.Marker = L.Class.extend({
if (map.options.zoomAnimation && map.options.markerZoomAnimation) { if (map.options.zoomAnimation && map.options.markerZoomAnimation) {
map.on('zoomanim', this._animateZoom, this); map.on('zoomanim', this._animateZoom, this);
this._icon.className += ' leaflet-zoom-animated'; this._icon.className += ' leaflet-zoom-animated';
if (this._shadow) {
this._shadow.className += ' leaflet-zoom-animated';
}
} else { } else {
this._icon.className += ' leaflet-zoom-hide'; this._icon.className += ' leaflet-zoom-hide';
if (this._shadow) {
this._shadow.className += ' leaflet-zoom-hide';
}
} }
}, },


Expand Down

0 comments on commit 914204f

Please sign in to comment.