Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Light map design
Browse files Browse the repository at this point in the history
  • Loading branch information
quassy committed Jun 21, 2015
1 parent 6ab16b4 commit 1f1d3be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pages/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
---

<div id="map" style="height:500px;width:100%"></div>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" rel="stylesheet" />
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v0.0.2/Leaflet.fullscreen.min.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v0.0.2/leaflet.fullscreen.css' rel='stylesheet' />
<script src="../pages/map.js"></script>
6 changes: 4 additions & 2 deletions pages/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
var map = L.map('map').setView([0.0,0.0], 2);

// add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '<a href="http://osm.org/copyright">OpenStreetMap</a>'
// http://{s}.tile.osm.org/{z}/{x}/{y}.png
L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', {
fullscreenControl: true,
attribution: '<a href="http://osm.org/copyright">OpenStreetMap</a>, <a href="http://cartodb.com/attributions">CartoDB</a>'
}).addTo(map);

/*
Expand Down

0 comments on commit 1f1d3be

Please sign in to comment.