Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add city services to map. Add EPA remediation sites to map. Add healt…
…h services sites to map. Delete unused images. Remove avid from map - they are confusing.
- Loading branch information
1 parent
c7e8dae
commit 825f20c
Showing
15 changed files
with
197 additions
and
49 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
define([ | ||
'../../data/gis/fire_stations_little_village', | ||
// '../../data/gis/police_stations_little_village' | ||
], function(fire/*, police*/) { | ||
return Backbone.View.extend({ | ||
|
||
// police: null, | ||
|
||
initialize: function() { | ||
// this.police = new GeoJSON(police, { | ||
// icon: "images/police.png" | ||
// }); | ||
|
||
if (typeof google === 'undefined') return this; | ||
this.render(); | ||
return this; | ||
}, | ||
|
||
renderFeatureCollection: function(collection, map) { | ||
console.log(collection) | ||
if (collection.length) { | ||
_(collection).each(function(feature) { | ||
if (feature.length) { | ||
_(feature).each(function(f) { | ||
f.setMap(map); | ||
}); | ||
} else { | ||
feature.setMap(map); | ||
} | ||
}); | ||
} else { | ||
collection.setMap(map); | ||
} | ||
return this; | ||
}, | ||
|
||
render: function() { | ||
var that = this; | ||
|
||
// this.renderFeatureCollection(this.police, this.options.map); | ||
|
||
_(fire.data).each(function(arr){ | ||
var marker = new google.maps.Marker({ | ||
position: new google.maps.LatLng(arr[14][1], arr[14][2]), | ||
icon: 'images/fire_station.png', | ||
flat: true, | ||
clickable: false, | ||
map: that.options.map | ||
}); | ||
}); | ||
|
||
return this; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
define([ | ||
'../../data/gis/health_human_services_little_village', | ||
'../../data/gis/hospitals_little_village' | ||
], function(hhs, hospitals) { | ||
return Backbone.View.extend({ | ||
|
||
hospitals: null, | ||
|
||
initialize: function() { | ||
if (typeof google === 'undefined') return this; | ||
|
||
this.hospitals = new GeoJSON(hospitals, { | ||
icon: "images/aviso_asthma_small.png" | ||
}); | ||
|
||
var that = this; | ||
_(hhs.data).each(function(arr){ | ||
var marker = new google.maps.Marker({ | ||
position: new google.maps.LatLng(arr[19][1], arr[19][2]), | ||
icon: 'images/hhs.png', | ||
flat: true, | ||
clickable: false, | ||
map: that.options.map | ||
}); | ||
}); | ||
|
||
this.renderFeatureCollection(this.hospitals, this.options.map); | ||
|
||
return this; | ||
}, | ||
|
||
// obj can be null to remove | ||
renderFeatureCollection: function(collection, obj) { | ||
if (collection.length) { | ||
_(collection).each(function(feature) { | ||
if (feature.length) { | ||
_(feature).each(function(f) { | ||
f.setMap(obj); | ||
}); | ||
} else { | ||
feature.setMap(obj); | ||
} | ||
}); | ||
} else { | ||
collection.setMap(obj); | ||
} | ||
return this; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters