var startList = function() {
var GmlClientGeocoder = new GClientGeocoder();
var map;
function moveCenterAddress() {
GmlClientGeocoder.getLocations(WA, Australia, GmlMoveEditorMarkerAddressResponse);
}
function GmlMoveEditorMarkerAddressResponse(response) {
if (!response || response.Status.code != 200) {
alert('Sorry, I could not find that address, please try again.');
} else {
place = response.Placemark[0];
point = new GLatLng(
place.Point.coordinates[1],
place.Point.coordinates[0]
);
map.setCenter(point);
}
}
function createMarker(point,html) {
var theIcon = new GIcon(G_DEFAULT_ICON);
theIcon.image = 'https://www.icpa.com.au/modules/icpaBranches/images/icons/gmap_branch.png';
theIcon.shadow = 'https://www.icpa.com.au/modules/icpaBranches/images/icons/gmap_branch_shadow.png';
theIcon.iconSize = new GSize(33, 30);
theIcon.shadowSize = new GSize(33, 30);
var marker = new GMarker(point, {icon: theIcon});
// The new marker "mouseover" listener
GEvent.addListener(marker,"click", function() {
marker.openInfoWindowHtml(html, {maxWidth:200});
});
return marker;
}
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("gmap"));
map.addControl(new GSmallMapControl());
//map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(-25.720735134412095,121.9921875),4);
var bounds = new GLatLngBounds();
var point = new GLatLng(-30.365766062875732,117.1197509765625);
bounds.extend(point);
var marker = createMarker(point,'
');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-33.861286,121.891427);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-24.891419479211137,114.49951171875);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-30.747667,121.472302);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-32.44821683261529,118.8636589050293);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-17.612610761099077,123.81591796875);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-32.9049563191375,119.50790405273438);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-26.591164,118.496352);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-28.714678586705976,115.169677734375);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-21.197216077387093,118.311767578125);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
var point = new GLatLng(-28.34789944257093,116.6748046875);
bounds.extend(point);
var marker = createMarker(point,' ');
// ************************ Must addslashes to php stuff above, single quote will break it
map.addOverlay(marker);
//map.setZoom(4);
//map.setCenter(bounds.getCenter());
}
}
load();
}