//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; // Just for Violet town var comcent; var comgarden; var map_updated_box_timer = 0; // Arrays compiled in PHP from MySQL data var houses = [ // [house_id, lat, long, gmarker] [65, -37.4611482845994, 144.669181108475, 733852], [66, -37.4622383483056, 144.671187400818, 733852], [67, -37.4612845434317, 144.673397541046, 733852], [68, -37.4450594811342, 144.635739326477, 733854], [69, -37.4646398388363, 144.673376083374, 733862], [70, -37.4562598347542, 144.673676490784, 733862], [71, -37.4627067301732, 144.677603244781, 733863], [168, -37.45828, 144.67696, 733863], [169, -37.45758, 144.67699, 733863], [176, -37.44362, 144.66632, 733863], [175, -37.44366, 144.66635, 733863], [174, -37.45145, 144.6757, 733863], [173, -37.45289, 144.67751, 733863], [172, -37.45293, 144.67758, 733863], [171, -37.45358, 144.67845, 733863], [167, -37.45866, 144.67744, 733863], [166, -37.45884, 144.67769, 733863], [165, -37.45906, 144.67792, 733863], [159, -37.4607, 144.68062, 733863], [160, -37.46023, 144.67935, 733863], [161, -37.46087, 144.68002, 733863], [162, -37.45981, 144.67885, 733863], [163, -37.45959, 144.67848, 733863], [164, -37.4593, 144.67821, 733863], [170, -37.45622, 144.67879, 733863], [181, -37.45458, 144.6808, 733863], [177, -37.46492, 144.67416, 733863], [178, -37.46305, 144.67647, 733863], [179, -37.46272, 144.67696, 733863], [180, -37.4559, 144.68144, 733863], [182, -37.44787, 144.68094, 733863], [183, -37.44452, 144.6768, 733863], [184, -37.4600326560707, 144.685081243515, 733874], [185, -37.4496505513332, 144.68169093132, 733875], [186, -37.4608672499735, 144.679057002068, 733915], [187, -37.4679268603983, 144.65283036232, 733915], [188, -37.4677480365178, 144.65389251709, 733915], [189, -37.4694766494439, 144.65075969696, 734203], [190, -37.4643077224016, 144.625214338303, 734203], [191, -37.4644354596665, 144.624645709991, 734203], [193, -37.4690594017077, 144.650491476059, 734251], [194, -37.4639670886283, 144.622188806534, 734251], [195, -37.46437584897, 144.624559879303, 734251], [196, -37.4608587337562, 144.678847789764, 734251], [197, -37.4689316723433, 144.649397134781, 734251], [198, -37.4617614473895, 144.669964313507, 734251], [199, -37.4384492080916, 144.698524475098, 734262], [200, -37.4596792282941, 144.684678912163, 734316], [201, -37.4607309903807, 144.683579206467, 734316], [202, -37.4597365, 144.684942, 734316], [203, -37.4627493101975, 144.677560329437, 734316], [204, -37.4640266996507, 144.674454331398, 734316], [205, -37.4519029, 144.6844052, 734316], [206, -37.4567106, 144.6783301, 734316], [207, -37.449862, 144.681784, 734316], [208, -37.4621020912114, 144.67120885849, 734316], [209, -37.4641118581716, 144.695670604706, 734317], [210, -37.4613088, 144.672463, 734335], [211, -37.4608395722638, 144.678866565228, 734337], [212, -37.4608438303736, 144.678863883018, 734337] ]; var housefeatures = [ // [house_id, feature_id] [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [172, 1], [173, 1], [174, 1], [175, 1], [176, 1], [177, 1], [178, 1], [179, 1], [180, 1], [181, 1], [182, 1], [183, 1], [184, 1], [185, 1], [186, 1], [187, 1], [188, 1], [189, 1], [190, 1], [191, 1], [193, 5], [194, 5], [195, 5], [196, 5], [197, 5], [198, 5], [199, 5], [200, 5], [201, 5], [202, 5], [203, 5], [204, 5], [205, 5], [206, 5], [207, 5], [208, 5], [209, 5], [210, 5], [211, 5], [212, 5] ]; var features = [ // [feature_id, name] [1, 'Carpet Weed (2009)'], [5, 'Carpet Weed (2010)'], //[1000, 'added this week'], [-1, 'any of the above'] ]; var notes = [ // [note_id, note] [67, 'The occurence of Galenia follows the recent gas main installation.'], [68, 'Removed most but hand, but some some survived and a small patch has emerged around 30 meters further down Riverside Drive.'], [69, 'On the road verge, where the gas line was dug, at the top of the slope that feeds down the hill into Wybejong. Could easily be spread by mowing of church land.'], [71, 'Numerous plants between the swings and the Red-flowering Eucalypt.'], [184, 'South corner'], [185, 'The location is actually the Government Lane at the end of Planation Rd. (the little track that cross the creek and comes out on Sandy Creek Rd) The plant is on the left hand, Sandy Creek Rd side of the creek embankment'], [186, 'On the School Croosing'], [187, 'On the Vic Roads works'], [188, 'On Vic Roads bridge works site'], [198, 'patch under wattle bush on nature strip of Rod and Val Kinter, sprayed 30/3/10'], [199, 'although picture is old ,our new home may have this weed'], [200, 'nature strip of 25 or 27 Filmer St, 25 Filmer St driveway spayed in 2009.'], [201, 'Big infestation of galenia in Egan Court and across the new subdivision in general.'], [202, 'follow up from 2009'], [203, 'Follow up srayed in 2009'], [204, 'On nature strip of new unit development at 56 - 58, and next door nature strip at 54 Main Road. Check sprayed out galenia on nature strip outside 50 Main Rd, on corner.'], [205, 'Sprayed out in 2009. Check both sides of driveway.'], [206, 'Big infestation both on nature strip and through front garden. Need to contact owners to see if they will deal with it in their yard.'], [207, 'On Sandy Creek just near Godfrey\'s place. Sprayed in 20-09. Check in 2010.'], [208, 'Outside Steve\'s place (Lions Club) on nature strip.'], [209, 'Infestation is on the roadside on the east side of Stokes Lane West. This site is quite close to the grassland rail reserve and the roadside also holds native wallaby grass and kangaroo grass.'], [210, 'I found this weed on our front mounded garden bed, facing the road, last year and pulled it out. There has been no activity, vehicular or otherwise, on or around that garden bed for at least 3 years. I keep a close watch for any further infestation.'], [211, 'About 10 plants SW of the school crossing on the medianstrip/naturestrip, all plants are less than 20m from the crossing.'], [212, '10 plants within 20m of school crossing (on \'medianstrip\')'] ]; 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 < houses.length; h++) { var house_has_features = 0; var html_str = ''; // Find features of the house for (f=0; f
' + html_str; // Add note if house has one for (f=0; f'; 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_2010 = new GIcon(G_DEFAULT_ICON); custom_marker_2010 = {icon:custom_marker_2010, title: '2010'}; var custom_marker_2009 = new GIcon(G_DEFAULT_ICON); custom_marker_2009.image = "marker_green.png"; custom_marker_2009 = {icon:custom_marker_2009, title: '2009'}; if (house_has_features) { if (houses[h][3] < 734251) { html_str = '2009!

' + html_str; houses[h][3] = CreateMarker(point, html_str, custom_marker_2009); } else { houses[h][3] = CreateMarker(point, html_str, custom_marker_2010); } } } // Display all initially DisplayHouses(-1); // Specially identify a house if it was just added and verified map.addOverlay(new GGeoXml('http://cosvt.com.au/ecolivingmap/tracks.kml')); // Just for Violet Town var custom_marker_flower = new GIcon(); custom_marker_flower.iconSize = new GSize(20, 17); custom_marker_flower.iconAnchor = new GPoint(10, 17); custom_marker_flower.infoWindowAnchor = new GPoint(13, 4); custom_marker_flower.infoShadowAnchor = new GPoint(18, 25); custom_marker_flower.image = "http://localhost:9876/rdev/sustmap/flower_marker.png"; custom_marker_flower = {icon:custom_marker_flower}; var custom_marker_building = new GIcon(); custom_marker_building.iconSize = new GSize(20, 17); custom_marker_building.iconAnchor = new GPoint(10, 17); custom_marker_building.infoWindowAnchor = new GPoint(13, 4); custom_marker_building.infoShadowAnchor = new GPoint(18, 25); custom_marker_building.image = "http://localhost:9876/rdev/sustmap/building_marker.png"; custom_marker_building = {icon:custom_marker_building}; comcent = new GMarker(new GLatLng("-36.636606", "145.717603"), custom_marker_building); comgarden = new GMarker(new GLatLng("-36.634442", "145.717622"), custom_marker_flower); GEvent.addListener(comcent, "click", function() { comcent.openInfoWindowHtml("Community Centre building
with Eco Living Retrofit"); }); GEvent.addListener(comgarden, "click", function() { comgarden.openInfoWindowHtml("Community Garden"); }); map.addOverlay(comcent); map.addOverlay(comgarden); } else { window.alert("Sorry, your internet browser is not compatible. Try Firefox."); } }