Skip to content

Instantly share code, notes, and snippets.

@mastersigat
Last active February 4, 2018 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastersigat/e4c50f4022716ff41ef79f28d18cfb38 to your computer and use it in GitHub Desktop.
Save mastersigat/e4c50f4022716ff41ef79f28d18cfb38 to your computer and use it in GitHub Desktop.
#Leaflet / Première carte
license: mit

Première carte avec leaflet

<html>
<head>
<title>A Leaflet map!</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
#map {width: 90%; height:600px; margin: auto; }
</style>
</head>
<body>
<div id="map"></div>
<script>
// Initialiser la carte
var map = L.map('map', {
center: [48.11, -1.66],
zoom: 13 });
// Fond de carte
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment