//Reilly Beacom //2008 //reillybeacom.id.au //Creative Commons Attribution 3.0 Unported License //http://creativecommons.org/licenses/by/3.0/ var map; var centre_lat = -37.456009; var centre_lng = 144.675098; var bound_lat = 0.06; var bound_long = 0.08; var map_updated_box_timer = 0; // Arrays compiled in PHP from MySQL data var houses = [ // [house_id, lat, long, gmarker] [36, -37.462423, 144.669142, 838], [37, -37.458941, 144.683934, 837], [62, -37.4489350784066, 144.692248106003, 831], [72, -37.4294698865698, 144.655963182449, 822], [73, -37.481158, 144.675568, 821], [74, -37.4581931100872, 144.686218500137, 817], [77, -37.426563, 144.650443, 815], [78, -37.4420866342011, 144.673268795013, 814], [79, -37.4574777188728, 144.679030179977, 814], [80, -37.4798645156573, 144.736322164536, 814], [81, -37.4567452874444, 144.699318408966, 814], [82, -37.4403829437506, 144.687162637711, 814], [83, -37.4631836250602, 144.693503379822, 812], [84, -37.456319451921, 144.681369066238, 810], [85, -37.455292, 144.666342, 809], [86, -37.452982, 144.685709, 805], [88, -37.475927, 144.615175, 799], [90, -37.4711115569069, 144.63167309761, 796], [92, -37.4503489825896, 144.681959152222, 785], [93, -37.4591043723183, 144.696958065033, 783], [100, -37.4400933125164, 144.667850732803, 654], [101, -37.429393208408, 144.620751142502, 543], [102, -37.458674, 144.680998, 525], [103, -37.459378, 144.687173, 522], [107, -37.4478107499819, 144.685306549072, 521], [108, -37.455135, 144.675132, 521], [110, -37.4516606529351, 144.663001298904, 521], [111, -37.4822739537236, 144.689855575562, 520], [112, -37.448517, 144.681507, 520], [113, -37.4548204915896, 144.666080474854, 520], [114, -37.455602, 144.674543, 520], [115, -37.414858, 144.687031, 520], [116, -37.4608076364322, 144.672099351883, 520], [117, -37.4427595812419, 144.66584444046, 519], [119, -37.4518139635521, 144.68452334404, 514], [120, -37.4468141720244, 144.67905163765, 509], [121, -37.4746987, 144.7176903, 500], [125, -37.4308671193186, 144.654632806778, 435], [126, -37.4606798929694, 144.672914743423, 426], [128, -37.4656617263052, 144.691368341446, 380], [129, -37.4568645209565, 144.705326557159, 235], [130, -37.4609183472567, 144.683450460434, 232], [131, -37.4571711205431, 144.640663862228, 129], [132, -37.45606, 144.681354, 109] ]; var housefeatures = [ // [house_id, feature_id] [36, 2], [36, 4], [36, 5], [36, 6], [36, 19], [37, 2], [37, 5], [62, 4], [62, 5], [62, 2], [62, 6], [72, 4], [72, 5], [72, 2], [72, 6], [73, 20], [73, 5], [74, 4], [74, 5], [77, 20], [77, 4], [77, 5], [77, 19], [77, 6], [78, 5], [78, 2], [78, 6], [79, 5], [79, 6], [80, 20], [80, 5], [81, 20], [81, 4], [81, 5], [81, 19], [100, 20], [82, 20], [82, 5], [82, 19], [83, 5], [83, 19], [84, 4], [84, 5], [84, 19], [84, 6], [85, 20], [86, 1], [86, 4], [86, 5], [88, 20], [90, 20], [92, 4], [92, 5], [92, 19], [92, 6], [93, 20], [93, 4], [100, 5], [100, 19], [100, 6], [100, 2], [101, 20], [101, 1], [101, 5], [102, 5], [102, 19], [103, 5], [107, 20], [107, 1], [107, 4], [107, 5], [108, 20], [108, 1], [110, 20], [111, 20], [111, 1], [111, 5], [112, 1], [113, 20], [113, 1], [113, 5], [114, 20], [114, 1], [114, 4], [114, 5], [115, 20], [115, 1], [115, 5], [116, 5], [117, 20], [117, 4], [117, 5], [117, 6], [119, 20], [119, 5], [119, 19], [119, 6], [120, 20], [120, 1], [120, 5], [121, 20], [121, 1], [121, 5], [125, 20], [125, 1], [125, 4], [125, 5], [125, 19], [126, 4], [126, 5], [128, 1], [128, 4], [128, 5], [128, 2], [128, 6], [129, 4], [129, 5], [129, 2], [129, 6], [130, 1], [130, 5], [131, 20], [131, 1], [131, 4], [131, 5], [132, 1], [132, 19], [132, 6] ]; var features = [ // [feature_id, name] [20, 'Solar Neighbourhood Project'], [1, 'Photovoltaic Panels'], [4, 'Solar Hot Water'], [5, 'Rain Water Tank'], [19, 'Green-Energy Supply'], [2, 'Five-Star< Rating'], [6, 'Grey Water Recycling'], //[1000, 'added this week'], [-1, 'any of the above'] ]; var notes = [ // [note_id, note] [36, 'The house is orientated for maximum solar gain with a sun room to feed heat into the house in winter. Double glazed windows and attention to draught sealing provides both summer and winter benefits.'], [62, 'Double Glazing,
Tinted windows'], [74, 'Mud brick house, built 1985.'], [72, 'Black and Grey water recycling
Living areas face north, with winter sun in house but verandah providing summer shade.
Insulated concrete slab and internal brick walls provide thermal mass.
Double glazing on windows and doors, plus roller shutters on wildows for additional insulation, security and'], [73, 'Riddells Creek Christmas Tree Farm'], [77, 'Five Star rating didn\'t exist when we built in 1976. However we did install: concrete slab with wood (home grown) fired hydronic heating, double glazing in living areas, insulation roof/ceiling/walls, pelmets and lined curtains in bedrooms, verandah all around with North facing one sized for sun in'], [79, 'Double glazing'], [84, 'The dam catches all the water off the roof of the house and shed. This is used to water the garden. All greywater is used on the garden. Solar hot water was installed 16 years ago and is still going strong. House faces north to catch all the winter sun which means no heating needed during a sunny da'], [92, 'Orientation N10W. All living areas face N, with verandahs providing summer shade. Internal brick walls provide thermal mass. Rain water only. SC stove for heating & cooking boosts HW.'], [93, 'House construction - Poured earth
Windows with reflective film for better insulation.
Dam for catchment of roof water to sustain edible garden plants and to provide wildlife water source.'], [100, 'This house is now in the construction phase. Other features include double glazing, good insulation, passive solar heating of living/kitchen area, heat pump hot water heating, worm farm waste-water treatment, sustainable bushland management and large vege garden.'], [101, 'Double-glazed windows, slate floors (thermal mass).'], [102, 'We are planning to solarise in the next few years, solar hot water soon, one more rainwater tank and a grey water system - we do some manual water recycling.'], [103, '2 x 4500 tanks'], [119, 'Thick bluestone walls to retain heat in Winter, cool in Summer. Composting, Mulching. Skylights in high use areas, Wide verandahs. Large native trees for wildlife. Build in 1857 and additions added later, 5-Star is going to be a long but achievable project.'], [125, '6-star energy rating refrigerator (no freezer). Drought resistant native garden. Land for Wildlife. No town water (all water via tanks). We\'ve been \'Ecomastered\' including draught-proofing throughout house and some retrofitted double-glazing (reduced heating bill by a third) - should pay for itself in 2-3 years and then continue on.'], [128, '2* 22,000 litre rainwater tanks
2 KW Photovoltaic Panel'] ]; function HideMapUpdatedBox() { document.getElementById('map_updated_box').style.display = "none"; } function DisplayHouses(filter) { // filter == -1 for all houses // filter > 0 displays houses that have feature.id == filter var display_or_not = 0; var house_count = 0; map.clearOverlays(); var polyline = new GPolyline([ new GLatLng(centre_lat-bound_lat, centre_lng-bound_long), new GLatLng(centre_lat-bound_lat, centre_lng+bound_long), new GLatLng(centre_lat+bound_lat, centre_lng+bound_long), new GLatLng(centre_lat+bound_lat, centre_lng-bound_long), new GLatLng(centre_lat-bound_lat, centre_lng-bound_long) ], "#ff0000", 5); map.addOverlay(polyline); for (h=0; h= 0) { display_or_not = 0; for (f=0;f of "sustainable" features: var html_str = ''; for (c=0; c' + feat_name + ''; } document.getElementById("feature_list").innerHTML = html_str; // Create house markers for map // For each house make html info pop-up bubble for (h=0; h'; house_has_features = 1; break; } } // Specially identify a house if it was just added and verified // Zoom links html_str += '

zoom in -- zoom out
'; // House location var point = new GLatLng(houses[h][1],houses[h][2]); // Overide non display of house if has no features but was just verified // Make marker for house var custom_marker_green = new GIcon(); custom_marker_green.iconSize = new GSize(20, 17); custom_marker_green.iconAnchor = new GPoint(10, 17); custom_marker_green.infoWindowAnchor = new GPoint(13, 4); custom_marker_green.infoShadowAnchor = new GPoint(18, 25); custom_marker_green.image = "http://riddellscreeksustainability.org.au/special/map/house_marker.png"; custom_marker_green = {icon:custom_marker_green}; var custom_marker_yellow = new GIcon(); custom_marker_yellow.iconSize = new GSize(20, 17); custom_marker_yellow.iconAnchor = new GPoint(10, 17); custom_marker_yellow.infoWindowAnchor = new GPoint(13, 4); custom_marker_yellow.infoShadowAnchor = new GPoint(18, 25); custom_marker_yellow.image = "http://riddellscreeksustainability.org.au/special/map/house_marker_yellow.png"; custom_marker_yellow = {icon:custom_marker_yellow}; if (house_has_features) { if (houses[h][3] < 7) { // less than 7 days ago gets yellow marker html_str = 'Recently added or updated!

' + html_str; houses[h][3] = CreateMarker(point, html_str, custom_marker_yellow); } else { houses[h][3] = CreateMarker(point, html_str, custom_marker_green); } } } // Display all initially DisplayHouses(-1); // Specially identify a house if it was just added and verified } else { window.alert("Sorry, your internet browser is not compatible. Try Firefox."); } }