Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make responsive map? #545

Open
Jatapiaro opened this issue May 5, 2017 · 1 comment
Open

How to make responsive map? #545

Jatapiaro opened this issue May 5, 2017 · 1 comment

Comments

@Jatapiaro
Copy link

No description provided.

@Jatapiaro
Copy link
Author

Jatapiaro commented May 15, 2017

Solved, just put your map inside a div.

<div id="map-container">
	<div id="map"></div>
</div>

Then add the following .css

<style type="text/css">
	#map-container {
	  padding: 6px;
	  border-width: 1px;
	  border-style: solid;
	  border-color: #ccc #ccc #999 #ccc;
	  -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
	  -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
	  box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
	//  width: 500px;
	}
	#map {
	//  width: 500px;
	    height: 500px;
	}
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant