Skip to content

Commit 2b9fb98

Browse files
committed
not sure what was changed...
1 parent c57e208 commit 2b9fb98

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

maps/lucasCo_hungarian.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
// Access your Mapbox account
5454
L.mapbox.accessToken = 'pk.eyJ1IjoibWFwdGFzdGlrIiwiYSI6IjNPMkREV1kifQ.2KGPFZD0QaGfvYzXYotTXQ';
5555

56-
// Space for the map within the script
56+
// Initialize the map
5757
var map = L.mapbox.map('map', undefined, {
5858
infoControl: true,
5959
attributionControl: false

maps/lucasCo_hungarian_leaflet.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
55
<!--[if lte IE 8]>
66
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.ie.css" />
7-
<![endif]-->
7+
<![endif]-->
8+
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
9+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
810
<style type="text/css">
911
body {
1012
padding: 0;
@@ -40,14 +42,14 @@
4042
}
4143

4244
</style>
43-
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
44-
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
4545
</head>
4646
<body>
4747
<div id='map'></div>
48-
<script>
49-
var map = L.map('map').setView([41.56633, -83.63830], 10);
50-
var geojson;
48+
<script>
49+
var map = L.map('map').setView([41.56633, -83.63830], 10);
50+
51+
//creates geojson variable
52+
var geojson;
5153

5254
// Function for the tooltip box
5355
var info = L.control();
@@ -141,6 +143,7 @@
141143
var stamenLayer = L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
142144
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'
143145
}).addTo(map);
146+
144147
//Add geojson
145148
$.getJSON("../data/prepared/lucasCo_hungarian_tracts.geojson", function(data) {
146149
geojson = L.geoJson(data, {

0 commit comments

Comments
 (0)