Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Need to do the shadow too

  • Loading branch information...
commit 914204f3019702c50071f15acd556233325539ca 1 parent 1667465
@danzel authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/layer/marker/Marker.js
View
6 src/layer/marker/Marker.js
@@ -31,8 +31,14 @@ L.Marker = L.Class.extend({
if (map.options.zoomAnimation && map.options.markerZoomAnimation) {
map.on('zoomanim', this._animateZoom, this);
this._icon.className += ' leaflet-zoom-animated';
+ if (this._shadow) {
+ this._shadow.className += ' leaflet-zoom-animated';
+ }
} else {
this._icon.className += ' leaflet-zoom-hide';
+ if (this._shadow) {
+ this._shadow.className += ' leaflet-zoom-hide';
+ }
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.