"+ title +"
"+ desc +"
";
//marker.openInfoWindowHtml(html);
});
eval(mType +'Marker['+ mType +'Marker.length]=marker;');
return marker;
}
function load() {
if(GBrowserIsCompatible()) {
function FilterPropertiesControl() {
}
FilterPropertiesControl.prototype=new GControl();
FilterPropertiesControl.prototype.initialize = function(map) {
var container = document.createElement("div");
map.getContainer().appendChild(container);
return container;
}
FilterPropertiesControl.prototype.getDefaultPosition = function() {
return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7, 120));
}
// Sets the proper CSS for the given button element.
FilterPropertiesControl.prototype.setButtonStyle_ = function(button) {
button.style.color = "#000000";
button.style.backgroundColor = "#FFF";
button.style.font = "10px Arial";
button.style.border = "1px solid black";
button.style.padding = "2px";
button.style.marginBottom = "3px";
button.style.textAlign = "left";
button.style.cursor = "pointer";
button.style.width = "100px";
}
FilterPropertiesControl.prototype.setImgStyle_ = function(Img) {
Img.style.verticalAlign = "middle";
Img.style.marginRight = "3px";
}
gMap=new GMap2(document.getElementById("map"));
if(GMap2) {
gMap.addControl(new GSmallMapControl());
gMap.addControl(new FilterPropertiesControl());
gMap.setCenter(new GLatLng(-27.5785, 152.0512), 9);
//GEvent.addListener(gMap, "click", function(marker, point) {
//if(typeof(point)=='object') {
// document.getElementById('pos').value+="new GLatLng("+ point.lat() +","+ point.lng() +"),";
//}
//});
//for(var a in house) {
// gMap.addOverlay(createMarker(house[a].title, house[a].image, house[a].desc, house[a].lat, house[a].lon, house[a].url, 'house', 'house'));
//}
//for(var a in unit) {
// gMap.addOverlay(createMarker(unit[a].title, unit[a].image, unit[a].desc, unit[a].lat, unit[a].lon, unit[a].url, 'units', 'unit'));
//}
//for(var a in commercial) {
// gMap.addOverlay(createMarker(commercial[a].title, commercial[a].image, commercial[a].desc, commercial[a].lat, commercial[a].lon, commercial[a].url, 'commercial', 'commercial'));
//}
//for(var a in business) {
// gMap.addOverlay(createMarker(business[a].title, business[a].image, business[a].desc, business[a].lat, business[a].lon, business[a].url, 'business', 'business'));
//}
//for(var a in motel) {
// gMap.addOverlay(createMarker(motel[a].title, motel[a].image, motel[a].desc, motel[a].lat, motel[a].lon, motel[a].url, 'motel', 'motel'));
//}
for(var a in office) {
gMap.addOverlay(createMarker(office[a].title, office[a].image, office[a].desc, office[a].lat, office[a].lon, office[a].url, 'office', 'office'));
}
//for(var a in land) {
// gMap.addOverlay(createMarker(land[a].title, land[a].image, land[a].desc, land[a].lat, land[a].lon, land[a].url, 'land', 'land'));
//}
//for(var a in rural) {
// gMap.addOverlay(createMarker(rural[a].title, rural[a].image, rural[a].desc, rural[a].lat, rural[a].lon, rural[a].url, 'rural', 'rural'));
//}
//for(var a in interest) {
// gMap.addOverlay(createMarker(interest[a].title, interest[a].image, interest[a].desc, interest[a].lat, interest[a].lon, interest[a].url, 'interest', 'interest'));
//}
}
}
}
function changeButton(which) {
if(which.style.backgroundColor=='rgb(255, 255, 255)' || which.style.backgroundColor=='#fff') {
which.style.backgroundColor='#CCC';
eval('var mTmp='+ which.id +'Marker;');
for(var a in mTmp) {
mTmp[a].hide();
}
} else {
which.style.backgroundColor='#FFF';
eval('var mTmp='+ which.id +'Marker;');
for(var a in mTmp) {
mTmp[a].show();
}
}
}
function customInfoWindow(url) {
var test=window.open(url, 'QuickTagInfo', 'width=800,height=600,scrollbars=yes,resizable=yes');
}