Skip to content

Commit

Permalink
potential fix for torque maps in safari #3351
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Jan 14, 2022
1 parent aa2404f commit 6597f01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/observations/torquemap.scss
Expand Up @@ -18,6 +18,11 @@
z-index: 1 !important;
}

.leaflet-safari .leaflet-tile-container {
width: auto !important;
height: auto !important;
}

.TorqueMap {
position: relative;
.map {
Expand Down
2 changes: 1 addition & 1 deletion app/views/observations/torquemap.html.haml
Expand Up @@ -7,7 +7,7 @@
= javascript_include_tag "observations-torque-webpack"
- content_for :extracss do
= stylesheet_link_tag "observations/torquemap"
= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/leaflet.css"
= stylesheet_link_tag "https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
#app
#initial-loading.text-center
.loading_spinner

0 comments on commit 6597f01

Please sign in to comment.