Slides beside map |
CSS changes
We need to make a couple of changes to how the smapp-show and smapp-map classes are displayed. You'll want to play around with these some, but this is what worked well for me:
.smapp-show { width:50%; } .smapp-show .slide { overflow-y:visible; } .smapp-map { margin:10px; width:48%; height:95%; position:absolute; top:0; right:0; }
Slidemapper changes
On the slidemapper side of things, the only edit we need to make is changing the options of our slideshow. Specifically, we need to edit the slideHeight and mapHeight to something appropriate for having the slides beside the map. For example, I chose:$mySlideMap = $('#slideshow-container').slideMapper({ slideHeight: 540, mapHeight: '98%' });
And that's all the changes you need to make to have a side-by-side slideshow in slidemapper! The full code is available as a gist.
No comments:
Post a Comment