Skip to content

Commit

Permalink
Merge pull request #7 from kuldeeplodha/Adding_pune_rural_data
Browse files Browse the repository at this point in the history
Adding Changes for Pune District City
  • Loading branch information
kuldeeplodha authored Jul 10, 2023
2 parents 62b5fdf + ad5adb9 commit cbc8dde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions graphs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ def get_data(key):
output_data['city'][city_name]['total_slum_count'] = total_slum_count
if city_name == 'Saharanpur':
output_data['city'][city_name]['household_count__sum'] = 3930
if city_name == 'Pune District':
output_data['city'][city_name]['household_count__sum'] = 2500
return output_data

result = get_data(key)
Expand Down
9 changes: 7 additions & 2 deletions static/js/city_wise_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,24 @@ function initMap(){
"PCMC":new L.LatLng(18.640083, 73.825560),
"Pune":new L.LatLng(18.51099762698481, 73.86055464212859),
"Panvel":new L.LatLng(19.051509, 73.109058),
"Saharanpur":new L.LatLng(29.96813172,77.54673382)};
"Saharanpur":new L.LatLng(29.96813172,77.54673382),
"Pune District":new L.LatLng(18.57054718,74.07657987)};
var pos = new L.LatLng(18.640083, 73.825560);
if ($('#city_name').val() in center_data)
{
pos = center_data[$('#city_name').val()];
}

map = new L.Map('map', {
center: pos,
zoom: 12,
zoomSnap: 0.25,
markerZoomAnimation:false
});

// Changing Zoom level for Pune District.
if ($('#city_name').val() == 'Pune District'){
map.setZoom(9);
};
var ggl = L.gridLayer.googleMutant({type: 'satellite' }).addTo(map);
initMap12();
}
Expand Down

0 comments on commit cbc8dde

Please sign in to comment.