Created
April 23, 2015 23:00
-
-
Save ebrelsford/e12ec5e0c2bb6a963398 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/macoru
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.8/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.8/mapbox.css' rel='stylesheet' /> | |
<style id="jsbin-css"> | |
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
width: 100%; | |
} | |
#map { | |
height: 100%; | |
width: 100%; | |
} | |
.overlay { | |
background: rgba(256, 256, 256, 0.5); | |
position: absolute; | |
height: 300px; | |
right: 25px; | |
/* Opacity makes the whole div and its | |
descendents transparent. */ | |
/*opacity: 0.5;*/ | |
top: 25px; | |
width: 75%; | |
z-index: 5001; | |
} | |
.overlay img { | |
max-width: 100%; | |
margin-top: 50px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"> | |
<div class="overlay"> | |
Here is an overlay with some text in it | |
<img src="http://ebrelsford.github.io/talks/2015/AdvancedGIS/week1/img/streetview.png"> | |
</div> | |
</div> | |
<script id="jsbin-javascript"> | |
L.mapbox.accessToken = 'pk.eyJ1IjoiZWJyZWxzZm9yZCIsImEiOiI2VFFWT21ZIn0.qhtAhoVTOPzFwWAi7YHr_Q'; | |
$(document).ready(function () { | |
var map = L.map('map').setView([40.745176,-73.959961], 12); | |
L.mapbox.tileLayer('ebrelsford.lpicp4in').addTo(map); | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-2.1.1.min.js"><\/script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.8/mapbox.js'><\/script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.8/mapbox.css' rel='stylesheet' /> | |
</head> | |
<body> | |
<div id="map"> | |
<div class="overlay"> | |
Here is an overlay with some text in it | |
<img src="http://ebrelsford.github.io/talks/2015/AdvancedGIS/week1/img/streetview.png"> | |
</div> | |
</div> | |
</body> | |
</html></script> | |
<script id="jsbin-source-css" type="text/css">html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
width: 100%; | |
} | |
#map { | |
height: 100%; | |
width: 100%; | |
} | |
.overlay { | |
background: rgba(256, 256, 256, 0.5); | |
position: absolute; | |
height: 300px; | |
right: 25px; | |
/* Opacity makes the whole div and its | |
descendents transparent. */ | |
/*opacity: 0.5;*/ | |
top: 25px; | |
width: 75%; | |
z-index: 5001; | |
} | |
.overlay img { | |
max-width: 100%; | |
margin-top: 50px; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">L.mapbox.accessToken = 'pk.eyJ1IjoiZWJyZWxzZm9yZCIsImEiOiI2VFFWT21ZIn0.qhtAhoVTOPzFwWAi7YHr_Q'; | |
$(document).ready(function () { | |
var map = L.map('map').setView([40.745176,-73.959961], 12); | |
L.mapbox.tileLayer('ebrelsford.lpicp4in').addTo(map); | |
});</script></body> | |
</html> |
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
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
width: 100%; | |
} | |
#map { | |
height: 100%; | |
width: 100%; | |
} | |
.overlay { | |
background: rgba(256, 256, 256, 0.5); | |
position: absolute; | |
height: 300px; | |
right: 25px; | |
/* Opacity makes the whole div and its | |
descendents transparent. */ | |
/*opacity: 0.5;*/ | |
top: 25px; | |
width: 75%; | |
z-index: 5001; | |
} | |
.overlay img { | |
max-width: 100%; | |
margin-top: 50px; | |
} |
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
L.mapbox.accessToken = 'pk.eyJ1IjoiZWJyZWxzZm9yZCIsImEiOiI2VFFWT21ZIn0.qhtAhoVTOPzFwWAi7YHr_Q'; | |
$(document).ready(function () { | |
var map = L.map('map').setView([40.745176,-73.959961], 12); | |
L.mapbox.tileLayer('ebrelsford.lpicp4in').addTo(map); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment