Skip to content

chriswhong/responsive-web-map-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

responsive-web-map-layout

This is a simple, full-screen responsive layout template for web mapping projects. It can save you some time scaffolding your project so you can focus on everything else.

It features a top nav, fixed width sidebar, and main map area. On mobile devices (less than 800px wide), the map and sidebar orientation is changed to column, with the map on top taking 60% of the vertical height.

Live demo (github pages)

Why

I teach web mapping at NYU, and made this to help my students with a ready-to-use layout that won't break on mobile devices.

How to Use

Clone this repository, and open index.html using a local webserver. I prefer using the Live Server extension for vs code.

That's it. index.html contains the html and css, along wtih some minimal code to create a Mapbox GL JS map in the #map container.

Screenshots

Desktop

Responsive_Web_Map_Layout

Mobile

Responsive_Web_Map_Layout

Contributing

I would love your help improving this or fixing bugs. Feel free to open an issue or pull request here.

Contact me on twitter at @chris_whong if you have any questions or feedback.

About

A useful responsive layout to use in your web mapping project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages