forked from AxisPhilly/avi-diff-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
182 lines (167 loc) · 8.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Property Tax Changes | AxisPhilly</title>
<meta name="description" content="AxisPhilly is a non-profit news and information organization whose mission is to educate and engage citizens on topics of public interest while empowering them with tools to participate in developing and implementing change.">
<meta name="keywords" content="axisphilly, axis philly, access philly, philadelphia public interest information network, news, philly, data, news applications, taxes, government, poverty, litter, avi, map, maps, avi map, property reassessment, assessments, crime, lobbying"/>
<meta property="og:site_name" content="AxisPhilly">
<meta property="og:url" content="http://www.axisphilly.org/">
<meta property="og:type" content="article">
<meta property="og:title" content="AxisPhilly AVI Map">
<meta property="og:description" content="How Property Taxes Could Change Across the City">
<meta property="og:image" content="http://axisphilly.org/news/wp-content/uploads/2013/02/Screen-Shot-2013-02-15-at-4.27.07-PM-560x306.png">
<meta property="twitter:site" content="@AxisPhilly">
<meta property="twitter:card" content="summary">
<meta property="twitter:creator" content="@caseypt">
<meta property="twitter:url" content="http://www.axisphilly.org/">
<meta property="twitter:title" content="AxisPhilly AVI Map">
<meta property="twitter:description" content="How Property Taxes Could Change Across the City">
<meta property="twitter:image" content="http://axisphilly.org/news/wp-content/uploads/2013/02/Screen-Shot-2013-02-15-at-4.27.07-PM-560x306.png">
<link rel="stylesheet" href="css/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/leaflet.ie.css" />
<![endif]-->
<link rel="icon" href="http://axisphilly.org/news/wp-content/themes/ally/images/favicon.png" type="image/x-icon" />
<link rel="shortcut icon" href="http://axisphilly.org/news/wp-content/themes/ally/images/favicon.png" type="image/x-icon" />
<script type="text/javascript" src="//use.typekit.net/nuc2aoh.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="http://axisphilly.org/news/wp-content/themes/ally/style.css" />
<link rel="stylesheet" href="css/app.css" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36899552-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<header>
<div id="show" class="toggle container"><i>↧</i> Expand</div>
<div id="info" class="container">
<h2>Property Tax Changes</h2>
<div class="byline"><span class="byline-author">by <a href="http://axisphilly.org/author/casey/" title="Posts by Casey Thomas" rel="author">Casey Thomas</a> </span><span class="byline-date">Feb. 15, 2013</span>, <a href="#" data-reveal-id="revision-history">Updated: Mar. 12, 2013</a></div>
<div id="hide" class="toggle"><i>↥</i> Collapse</div>
<p class="description">
This map shows how property taxes would change for most properties if City Council passes a tax rate of 1.34% and a $30,000 Homestead Exemption. We'll be updating this map as the city decides what the final rate and exemption amounts will be.
</p>
<p class="description">Search for a specific address to zoom in on a neighborhood. Hover over a parcel to get more detailed information for that parcel.</p>
<p class="note">
</p>
<hr>
<p>Search for a Philadelphia address: </p>
<form id="geocoder">
<input type="text" id="address" placeholder="4000 Market St"></input>
<input type="button" title="Search" value="Search" id="search"/>
</form>
</div>
<div id="tooltip" class="container">
</div>
</header>
<section>
<div id="map"></div>
</section>
<footer>
</footer>
<script type="text/javascript" src="js/leaflet.js"></script>
<script type="text/javascript" src="js/wax.leaf.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.geocodify.js"></script>
<script type="text/javascript" src="js/underscore.min.js"></script>
<script type="text/javascript" src="js/jquery.foundation.reveal.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#address').keypress(function(e){
if(e.which == 13) {
e.preventDefault();
geocode();
}
});
$('#search').click(function(e){
e.preventDefault();
geocode();
});
function geocode() {
var query = encodeURIComponent($('#address').val() + ", Philadelphia, PA USA"),
boundingBox = '39.884,-75.318,40.130,-74.881';
$.ajax({
url: 'http://open.mapquestapi.com/geocoding/v1/address?format=json&callback=json_callback&limit=1&location=' + query +
'&boundingBox=' + boundingBox,
dataType: 'jsonp',
jsonpCallback: 'json_callback',
success: function(res){
var latLng = res.results[0].locations[0].latLng
app.map
.panTo(new L.LatLng(latLng.lat, latLng.lng))
.setZoom(17);
}
});
}
// Bind toggle
$("#hide").click(function(){
$(".description").slideUp();
$(".note").slideUp();
$("#show").show();
})
$("#show").click(function(){
$(".description").slideDown();
$(".note").slideDown();
$("#show").hide();
});
// Default settings. Overridden by URL params, if they exist
app.opts = {
mapContainer: 'map',
tileURL: 'http://api.tiles.mapbox.com/v3/axisphilly.map-1th3hk03.jsonp',
mapOptions: {
center: [39.978, -75.174],
zoom: 13,
minZoom: 11,
maxZoom: 18,
maxBounds: [
[39.69, -76.20],
[40.60, -74.14]
]
}
}
// Kick off map
app.initMap(function() {
app.map.attributionControl.addAttribution(
'Map Data: City of Philadelphia; ' +
'Basemap Data: (c) <a href="http://www.openstreetmap.org">OpenStreetMap</a>; ' +
'Colors: <a href="http://colorbrewer2.org/">ColorBrewer.org</a> ' +
'Geocoding powered by <a href="http://open.mapquestapi.com/geocoding/">MapQuest Open</a>.'
);
// Legend fixes
$('span.middle').css({
'background': '#777'
})
$('.start.decrease em').css({
'margin-right': '3px'
});
// Insert embed code
$('.embed').html('<a href="#" data-reveal-id="embed-code">Embed this map</a>')
$('.embed').click(function(){
$('#embed-code .url').html('<code><iframe width="100%" height="600" src="' + document.URL + '" frameborder="0"></iframe></code>');
});
});
});
</script>
<div id="revision-history" class="reveal-modal small">
<strong>Mar. 12, 2013</strong>
<p>Style changes were made to the map to better match the AxisPhilly website style. No map data was updated.</p>
<strong>Feb. 17, 2013</strong>
<p>Parcels that have not yet been reassessed under AVI--mostly concentrated in the northwest--were incorrectly added to this map. They have been removed. Parcels that were not originally shown--mostly parcels with abatements--have been added. Parcels that could not be matched to a tax record are not shown. The legend has also been adjusted to better fit the data.</p>
<a class="close-reveal-modal">×</a>
</div>
<div id="embed-code" class="reveal-modal medium">
Use this code to embed this map at the current location and zoom level:
<span class="url"></span>
<a class="close-reveal-modal">×</a>
</div>
</body>
</html>