By default only enable markerZoomAnimation if the browser supports transition and 3d. Allows Browser.any3d=false hack to work again

This commit is contained in:
danzel 2012-06-26 11:30:54 +12:00
parent 50c6c480b4
commit dc46ae2ae3

View File

@ -17,7 +17,7 @@ L.Map = L.Class.extend({
fadeAnimation: L.DomUtil.TRANSITION && !L.Browser.android,
trackResize: true,
markerZoomAnimation: true
markerZoomAnimation: L.DomUtil.TRANSITION && L.Browser.any3d
},
initialize: function (id, options) { // (HTMLElement or String, Object)