Skip to content

Commit d3d2339

Browse files
authored
pune sync maps
1 parent d6f37da commit d3d2339

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pune_07-12-17_sync.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>Pune prabhag (electoral ward) maps : 2007, 2012, 2017</title>
5+
<title>Pune prabhag (electoral ward) maps : Pre-2012, 2012-17, 2017 onwards</title>
66
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" />
77
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet-src.js"></script>
88
<script src="https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-omnivore/v0.3.1/leaflet-omnivore.min.js" alt='lib/leaflet-omnivore.min.js'></script>
@@ -33,10 +33,11 @@
3333
.ribbon {
3434
position: absolute;
3535
right: -5px; top: -5px;
36-
z-index: 1;
36+
z-index: 1000;
3737
overflow: hidden;
3838
width: 80px; height: 80px;
3939
text-align: right;
40+
position: fixed;
4041
}
4142
.ribbon span {
4243
font-size: 10px;
@@ -71,9 +72,9 @@ <h2>Pune Prabhag boundaries : three layouts over 15 years, synchronized maps.</h
7172
</div>
7273

7374
<br>&nbsp;<br>
74-
<p>Instructions: Click/touch and drag to move the map around. Use the zoom control on top left or +/- keys to zoom in or out. All three maps will move together. The circles tell which area the mouse is currently hovering on.</p>
75+
<p>Instructions: Click/touch and drag to move the map around. Use the zoom control on top left or +/- keys to zoom in or out. All three maps will move together, and mouse cursor position will be copied.</p>
7576
<p>Click on links to download the shape files.: Green : <a href="maps/pune.2017.wards.geojson">2017-present</a> (41 prahags) | Blue: <a href="maps/pune.2012-17.wards.geojson">2012-17</a> (76 prabhags) | Red: <a href="maps/pune.pre-2012.wards.geojson:">Pre-2012</a> (144 Prabhags). <br>The 2011 Census data for Pune is as per the pre-2012 144 prabhags.</p>
76-
<p>Map prepared by Nikhil VJ, Pune. Contact : nikhil.js [at] gmail.com.
77+
<p>Map prepared by <a href="https://answerquest.github.io">Nikhil VJ</a>, <a href="https://datameet-pune.github.io">DataMeet Pune Chapter</a>, India. Contact : nikhil.js [at] gmail.com.
7778

7879
<p><a href="https://www.instamojo.com/@nikhilvj/">Please contribute</a> if you appreciate this work and would like to see more of it!</p>
7980

@@ -149,22 +150,22 @@ <h2>Pune Prabhag boundaries : three layouts over 15 years, synchronized maps.</h
149150
onEachFeature: onEachFeature
150151
}).addTo(map);
151152
omnivore.geojson(DATAPATH+'pune.2017.wards.geojson', null, wards);
152-
layerControl.addOverlay(wards , "2017 Prabhags (41)");
153+
layerControl.addOverlay(wards , "2017 onwards (41)");
153154

154155

155156
var wardsA = L.geoJson(null, {
156157
style: {weight: 1.5, opacity: 1, color: 'blue', dashArray: '0', fillOpacity: 0.0 },
157158
onEachFeature: onEachFeatureA
158159
}).addTo(mapA);
159160
omnivore.geojson(DATAPATH+'pune.2012-17.wards.geojson', null, wardsA);
160-
layerControlA.addOverlay(wardsA , "2012-17 Prabhags (76)");
161+
layerControlA.addOverlay(wardsA , "2012-17 (76)");
161162

162163
var wardsB = L.geoJson(null, {
163164
style: {weight: 1.5, opacity: 1, color: '#d55d5d', dashArray: '0', fillOpacity: 0.0 },
164165
onEachFeature: onEachFeatureB
165166
}).addTo(mapB);
166167
omnivore.geojson(DATAPATH+'pune.pre-2012.wards.geojson', null, wardsB);
167-
layerControlB.addOverlay(wardsB , "pre-2012 Prabhags (144)");
168+
layerControlB.addOverlay(wardsB , "pre-2012 (144)");
168169

169170
function onEachFeature(feature, layer) {
170171
var popupText = '<big><b>' + feature.properties['prabhag_number'].toString() + "</b>: " + feature.properties['prabhag_name'] +

0 commit comments

Comments
 (0)