This file contains hidden or 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
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>WCFCourier.com - Poverty in Iowa</title> | |
<style> | |
body { font-family: Arial, sans-serif; } |
This file contains hidden or 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
# Scraper based on this tutorial from BuzzData: | |
# http://blog.buzzdata.com/post/11871523667/how-to-scrape-toronto-data-a-basic-tutorial | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
# Create a file called "ward_pop.tsv" where we'll save our data | |
f = open('caucus_locations02.tsv', 'w') | |
# Make a header row: locationname (tab) precinct (tab) address (tab) address2 |
This file contains hidden or 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
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Lee Enterprises - GOP Caucus/Primary Results</title> | |
<style> | |
body { height: 650px; width:610px; | |
font-family: Arial, sans-serif; } | |
This file contains hidden or 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
# Uses Albert Sun's polygon library - https://github.com/albertsun/gmap-features | |
<!doctype html> | |
<head> | |
<title>WCFCourier.com - Heroin in the U.S.</title> | |
<style type="text/css"> | |
body { font-family: Arial, sans-serif; } | |
#map_canvas { | |
height: 600px; | |
width: 620px; |
This file contains hidden or 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
## View online: http://wcfcourier.com/app/special/national_register/ | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>WCFCourier.com - Historic places in Eastern Iowa</title> | |
<style> |
This file contains hidden or 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
function initialize() { | |
map = new google.maps.Map(document.getElementById('map_canvas'), { | |
center: new google.maps.LatLng(42.5, -92.2), | |
zoom: 10, | |
minZoom: 8, | |
maxZoom: 15, | |
mapTypeId: google.maps.MapTypeId.TERRAIN | |
}); | |
loadmap(); | |
} |
This file contains hidden or 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
function loadmap() { | |
layer2 = new google.maps.FusionTablesLayer({ | |
query: { | |
select: 'geometry', | |
from: 2814002 | |
} | |
}); | |
layer2.setMap(map); | |
layer = new google.maps.FusionTablesLayer({ |
This file contains hidden or 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
layer.enableMapTips({ | |
select: "'Number', 'Tract', 'County', 'Population for whom poverty status is determined - Total', 'Population for whom poverty status is determined - Below poverty level', 'Population for whom poverty status is determined - Percent below poverty level', 'One race - White', 'One race - Black', 'Other', 'Two or more races'", // list of columns to query, typially need only one column. | |
from: 2415095, // fusion table name | |
geometryColumn: 'geometry', // geometry column name | |
suppressMapTips: true, // optional, whether to show map tips. default false | |
delay: 1, // milliseconds mouse pause before send a server query. default 300. | |
tolerance: 6 // tolerance in pixel around mouse. default is 6. | |
}); | |
//here's the pseudo-hover |
This file contains hidden or 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
FusionTipOverlay.prototype.onAdd = function() { | |
var div = document.createElement('DIV'); | |
div.style.border = "1px solid #999999"; | |
div.style.opacity = ".85"; | |
div.style.position = "absolute"; | |
div.style.whiteSpace = "nowrap"; | |
div.style.backgroundColor = "#ffffff"; | |
div.style.fontSize = '13px'; | |
div.style.padding = '10px'; | |
div.style.fontWeight = 'bold'; |
This file contains hidden or 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
<script type="text/javascript" src="fusiontips.js"></script> |
OlderNewer