Created
July 4, 2017 11:39
-
-
Save zoutepopcorn/e010025c2102660a12adcd08900d0109 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/mebugux
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | |
integrity="sha512-wcw6ts8Anuw10Mzh9Ytw4pylW8+NAD4ch3lqm9lzAsTxg0GFeJgoAtxuCLREZSC5lUXdVyo/7yfsqFjQ4S+aKw==" | |
crossorigin=""/> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" | |
integrity="sha512-mNqn2Wg7tSToJhvHcqfzLMU6J4mkOImSPTxVZAdo+lcPlk+GhZmYgACEe0x35K7YzW1zJ7XyJV/TT1MrdXvMcA==" | |
crossorigin=""></script> | |
<style id="jsbin-css"> | |
#mapid { | |
height: 100vh; | |
width: 100vw; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="mapid"></div> | |
<script id="jsbin-javascript"> | |
var m = L.map('mapid').setView([52, 5], 18); | |
L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', { | |
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>', | |
subdomains:['mt0','mt1','mt2','mt3'], | |
maxZoom: 18, | |
id: 'mapbox.streets', | |
accessToken: 'your.mapbox.access.token' | |
}).addTo(m); | |
m.flyTo([52, 5.8], 18, {duration: 30, minZoom: 13}); | |
</script> | |
<script id="jsbin-source-css" type="text/css">#mapid { | |
height: 100vh; | |
width: 100vw; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var m = L.map('mapid').setView([52, 5], 18); | |
L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', { | |
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>', | |
subdomains:['mt0','mt1','mt2','mt3'], | |
maxZoom: 18, | |
id: 'mapbox.streets', | |
accessToken: 'your.mapbox.access.token' | |
}).addTo(m); | |
m.flyTo([52, 5.8], 18, {duration: 30, minZoom: 13});</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
#mapid { | |
height: 100vh; | |
width: 100vw; | |
} |
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
var m = L.map('mapid').setView([52, 5], 18); | |
L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', { | |
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>', | |
subdomains:['mt0','mt1','mt2','mt3'], | |
maxZoom: 18, | |
id: 'mapbox.streets', | |
accessToken: 'your.mapbox.access.token' | |
}).addTo(m); | |
m.flyTo([52, 5.8], 18, {duration: 30, minZoom: 13}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment