xxxxxxxxxx
<html>
<head>
<meta charset="UTF-8" />
<title>BTVVotes Plans</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.css" type="text/css" />
</head>
<body>
<div id="projects" class="layers">
<a data-control="layer" href="#existing">Existing Wards</a>
<a data-control="layer" href="#btv4wv3">Proposal: 4 Wards v3</a>
<a data-control="layer" href="#btv7wv4">Proposal: 7 Wards v4*</a>
<a data-control="layer" href="#btv7wv5">Proposal: 7 Wards v5</a>
<a data-control="layer" href="#btv8wv1">Proposal: 8 Wards v1</a>
</div>
<div id="map" class="map">
</div>
<!-- External libraries and site script -->
<script src="https://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="script.js"></script>
<!-- Site configuration -->
<script type="text/javascript">
// Make a new map in the #map element
var main = Map('map', {
// Specify the MapBox API url
api: 'https://a.tiles.mapbox.com/v3/landplanner.map-a0wbwf43.jsonp',
center: {
lat: 44.484626966, // Intial center point and zoom level.
lon: -73.2342639, // To find coordinates and zoom levels
zoom: 13 // try: https://www.getlatlon.com
},
zoomRange: [0, 17]
});
// Make a new layer switch for the map named `main`. Each layer gets
// a name and an object of settings. The layers are bound by name to
// the href hash of an element with a `data-control='layer'`, ex:
// <a data-control="layer" href="#building">Building Permits, 2011</a>
main.layers({
existing: { api: 'https://a.tiles.mapbox.com/v3/landplanner.btvwards-current,landplanner.map-0wnm9063.jsonp' },
btv4wv3: { api: 'https://a.tiles.mapbox.com/v3/landplanner.wards-4w-v3,landplanner.map-0wnm9063.jsonp' },
btv7wv4: { api: 'https://a.tiles.mapbox.com/v3/landplanner.wards-7w-v4,landplanner.map-0wnm9063.jsonp' },
btv7wv5: { api: 'https://a.tiles.mapbox.com/v3/landplanner.wards-7w-v5,landplanner.map-0wnm9063.jsonp' },
btv8wv1: { api: 'https://a.tiles.mapbox.com/v3/landplanner.wards-8w-v1,landplanner.map-0wnm9063.jsonp' }
});
</script>
</body>
</html>
Modified http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js to a secure url
Modified http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js to a secure url
https://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js
https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js