Skip to content

Commit

Permalink
Ensure marker images show if max-width configured
Browse files Browse the repository at this point in the history
Previous versions of Leaflet had ``.leaflet-container img { max-width: none !important }`` prior to the change in Leaflet@b3ff3a0, when the selector became more specific. 

This change ensures markers continue to be shown in the case of the page loading Leaflet has a CSS rule like ``img { max-width: 100%; }`` applied.
  • Loading branch information
davidjb committed Jul 19, 2015
1 parent a01af4e commit c75af44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-tile-pane img {
max-width: none !important;
}
Expand Down

0 comments on commit c75af44

Please sign in to comment.