// Copyright 2005 MapBuilder.net // You can't use this script or parts of this script without written permission from MapBuilder.net or Andrew Bidochko. // This script is a part of free service provided by MapBuilder.net and the script can be used from MapBuilder.net server only. function include(script_filename) { document.write('<' + 'script'); document.write(' language="javascript"'); document.write(' type="text/javascript"'); document.write(' src="' + script_filename + '">'); document.write(''); } include("http://www.mapbuilder.net/js/direction.php"); // Global Variables // set map variable var map = ""; //set up array of locations var aLocations = new Array; // Storage for sidebar list var listNodeContent = ""; // Create MabBuilder's "tiny" red marker icon var iconsm = new GIcon(); iconsm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; iconsm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; iconsm.iconSize = new GSize(12, 20); iconsm.shadowSize = new GSize(22, 25); iconsm.iconAnchor = new GPoint(6, 20); iconsm.infoWindowAnchor = new GPoint(5, 1); // Create MabBuilder's "big" marker icon var iconbig = new GIcon(); iconbig.image = "http://www.google.com/mapfiles/marker.png"; iconbig.shadow = "http://www.google.com/mapfiles/shadow50.png"; iconbig.iconSize = new GSize(20, 34); iconbig.shadowSize = new GSize(37, 34); iconbig.iconAnchor = new GPoint(6, 34); iconbig.infoWindowAnchor = new GPoint(5, 1); // Custom Icon var iconcustom = new GIcon(iconbig); iconcustom.shadow = ''; /* * Copyright (c) 2005 Andriy Bidochko. * http://www.mapbuilder.net * * The script has been generated by MapBuilder.net service and released to the customer under * The GNU General Public License (GPL), which can be found at: http://www.opensource.org/licenses/gpl-license.php * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ MapBuilder.prototype.GetGoogleMapsAPIVersion = function() { var v = 0; var scripts = document.getElementsByTagName("SCRIPT") for (var i=0; iPowered By MapBuilder.net v1.0, GMap v'+v+''; try { if (v > 2) { oMap.getContainer().appendChild(info); } else { oMap.div.parentNode.appendChild(info); } } catch (e) { // do nothing } } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } MapBuilder.prototype.registerMBEvent=function(oMap){ GEvent.addListener(oMap, "maptypechanged", function() { setCreatedColor(oMap); }); } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } //Set "Created By Mapbuilder" color based on map type function setCreatedColor(oMap) { // v1 return ; var info=oMap.ownerDocument.getElementById('CreatedByMapBuilder'); currmaptype = getCurrentMapTypeNumber(oMap); // Regular map if (currmaptype == 0) info.style.color='#000000'; else info.style.color='#FFFFFF'; } //That function will return the element of the array returned by map.getMapTypes() that identifies the current map function getCurrentMapTypeNumber(oMap){ var type=-1; for(var ix=0;ix 7) ? 7 : ((currentZoom == 0) ? 0 : (currentZoom - 1)); map.centerAndZoom(aLocations[num][3], newzoom); } // Function is called when sidebar item is clicked or we are dealing with group boxes. function myInfoWindowHtml(num) { // Map rendering with open info window is very slow. Lets center map first. map.centerAtLatLng(aLocations[num][3]); // Use markeropenInfoWindowHtml(html) aLocations[num][0].openInfoWindowHtml(aLocations[num][2]); // Move focus to the map // Depricated //window.scrollTo(10, 10); } function MapBuilder(){} MapBuilder.prototype.initialize=function(oMap){ // Resize Map //v1 oMap.container.style.width = "580px"; //v1 oMap.container.style.height = "390px"; //v1 oMap.onResize(); this.addMBInfo(oMap); this.renderMBMap(oMap); this.registerMBEvent(oMap); // Set created by color setCreatedColor(oMap); } MapBuilder.prototype.renderMBMap=function(oMap){ //Render Map Locations // Map type: map, satellite, hybrid map.setMapType(map.getMapTypes()[0]); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); // Center the map to the default location map.centerAndZoom(new GPoint(-84.32809352874756, 33.93997767620968), 2); // Variables var point; var footerHtml; var InfoHTML; var marker; // Add locations point = new GPoint(-84.327073, 33.938649); footerHtml = "
" + GetDirectionForm(0); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Atlanta North SDA Church
5123 Chamblee-Dunwoody Rd
Atlanta, GA 30338

Website  |  ofc: 770-399-6884
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[0] = new Array(marker, "Atlanta North SDA Church", InfoHTML, point); point = new GPoint(-97.163849, 32.592074); footerHtml = "
" + GetDirectionForm(1); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Mansfield SDA 108
Mansfield SDA Church       
1951 N Main Mansfield, TX 76063-3949
Mail: PO Box 2110 Mansfield, TX 76063-0020
Members:     108
Myron Voegele, Pastor
817-561-2993
mansfield24.adventistchurchconnect.org
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[1] = new Array(marker, "Mansfield SDA 108", InfoHTML, point); point = new GPoint(-96.594356, 32.754748); footerHtml = "
" + GetDirectionForm(2); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Mesquite SDA 206
Mesquite SDA Church       
300 Paza Dr Mesquite, TX 75149-5024
Members:     206
Larry Priest, Pastor
972-288-0848
mesquite22.adventistchurchconnect.org
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[2] = new Array(marker, "Mesquite SDA 206", InfoHTML, point); }