Last active
December 2, 2019 19:07
-
-
Save perliedman/9d42f6d1d6583e882df7ae9e95252c0d to your computer and use it in GitHub Desktop.
Embed Leaflet.js maps in Reveal.js presentations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.map { | |
width: 960px; | |
height: 480px; | |
} | |
.reveal .leaflet-container .leaflet-fade-anim .leaflet-tile, .reveal .leaflet-container .leaflet-fade-anim .leaflet-popup { | |
-webkit-transition: opacity 0.2s linear; | |
-moz-transition: opacity 0.2s linear; | |
-o-transition: opacity 0.2s linear; | |
transition: opacity 0.2s linear; | |
} | |
.reveal .leaflet-container { | |
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; | |
} | |
.reveal .leaflet-container img { | |
margin: 0; | |
background: none; | |
border: none; | |
box-shadow: none; | |
max-height: inherit; | |
} | |
.reveal .leaflet-container .leaflet-popup-tip-container { | |
margin: 0 auto; | |
} | |
.reveal .leaflet-container .leaflet-popup-content-wrapper { | |
padding: 1px; | |
margin: inherit; | |
} | |
.reveal .leaflet-container .leaflet-popup-content { | |
margin: 13px 19px; | |
line-height: 1.4; | |
} | |
.reveal .leaflet-container .leaflet-popup-content h3 { | |
color: #333; | |
} | |
.reveal .leaflet-container .leaflet-popup-tip { | |
padding: 1px; | |
margin: -10px auto 0; | |
} | |
.reveal .leaflet-container .leaflet-popup-content, .reveal .leaflet-popup-content h2 { | |
color: #333; | |
} | |
.reveal .leaflet-container .leaflet-popup-content pre { | |
font-size: 14px; | |
width: 100%; | |
box-shadow: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, your leaflet related production is impressive. Would you have a working html example using this reveal - leaflet css ?
For an idea of what I am tring to achieve, see https://benoitrolland.github.io/ : ZoneFactor