diff --git a/dist/leaflet.css b/dist/leaflet.css index 4d93727e..053c2c09 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -26,12 +26,6 @@ -moz-user-select: none; -webkit-user-select: none; } -.leaflet-tile { - visibility: hidden; - } -.leaflet-tile-loaded { - visibility: inherit; - } .leaflet-marker-icon, .leaflet-marker-shadow { display: block; @@ -56,6 +50,30 @@ } +.leaflet-tile { + opacity: 0; + + -webkit-transition: opacity 0.2s linear; + -moz-transition: opacity 0.2s linear; + -o-transition: opacity 0.2s linear; + transition: opacity 0.2s linear; +} +.leaflet-tile-loaded { + opacity: 1; +} + + +.leaflet-popup { + -webkit-transition: opacity 0.2s linear; + opacity: 0; +} +.leaflet-map-pane .leaflet-popup { + opacity: 1; +} + + + + /* Popup layout */ .leaflet-popup { diff --git a/dist/leaflet.ie.css b/dist/leaflet.ie.css index a443be99..daeb7558 100644 --- a/dist/leaflet.ie.css +++ b/dist/leaflet.ie.css @@ -17,4 +17,14 @@ .leaflet-vml-shape { width: 1px; height: 1px; + } + +.leaflet-tile { + visibility: hidden; + } +.leaflet-tile-loaded { + visibility: inherit; + } +.leaflet-popup { + opacity: 1; } \ No newline at end of file