|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <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> |
6 | 6 | <link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" /> |
7 | 7 | <script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet-src.js"></script> |
8 | 8 | <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 | 33 | .ribbon { |
34 | 34 | position: absolute; |
35 | 35 | right: -5px; top: -5px; |
36 | | - z-index: 1; |
| 36 | + z-index: 1000; |
37 | 37 | overflow: hidden; |
38 | 38 | width: 80px; height: 80px; |
39 | 39 | text-align: right; |
| 40 | + position: fixed; |
40 | 41 | } |
41 | 42 | .ribbon span { |
42 | 43 | font-size: 10px; |
@@ -71,9 +72,9 @@ <h2>Pune Prabhag boundaries : three layouts over 15 years, synchronized maps.</h |
71 | 72 | </div> |
72 | 73 |
|
73 | 74 | <br> <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> |
75 | 76 | <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. |
77 | 78 |
|
78 | 79 | <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> |
79 | 80 |
|
@@ -149,22 +150,22 @@ <h2>Pune Prabhag boundaries : three layouts over 15 years, synchronized maps.</h |
149 | 150 | onEachFeature: onEachFeature |
150 | 151 | }).addTo(map); |
151 | 152 | omnivore.geojson(DATAPATH+'pune.2017.wards.geojson', null, wards); |
152 | | -layerControl.addOverlay(wards , "2017 Prabhags (41)"); |
| 153 | +layerControl.addOverlay(wards , "2017 onwards (41)"); |
153 | 154 |
|
154 | 155 |
|
155 | 156 | var wardsA = L.geoJson(null, { |
156 | 157 | style: {weight: 1.5, opacity: 1, color: 'blue', dashArray: '0', fillOpacity: 0.0 }, |
157 | 158 | onEachFeature: onEachFeatureA |
158 | 159 | }).addTo(mapA); |
159 | 160 | 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)"); |
161 | 162 |
|
162 | 163 | var wardsB = L.geoJson(null, { |
163 | 164 | style: {weight: 1.5, opacity: 1, color: '#d55d5d', dashArray: '0', fillOpacity: 0.0 }, |
164 | 165 | onEachFeature: onEachFeatureB |
165 | 166 | }).addTo(mapB); |
166 | 167 | 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)"); |
168 | 169 |
|
169 | 170 | function onEachFeature(feature, layer) { |
170 | 171 | var popupText = '<big><b>' + feature.properties['prabhag_number'].toString() + "</b>: " + feature.properties['prabhag_name'] + |
|
0 commit comments