/************************************************* * Created with Google_Map Pear Class 0.1 * Author: Monte Ohrt * Author: Gordon Forsythe * Copyright 2005-2006 New Digital Group * http://www.phpinsider.com/php/code/GoogleMapAPI/ *************************************************/ var points = []; var markers = []; var namedmarkers = []; var namedmarkers_html = []; var mapPolygons = new Array(); var counter = 0; var icon = []; icon[0] = new GIcon(); icon[0].image = "/themes/incredible/images/map/IA_marker_current.png"; icon[0].iconSize = new GSize(37,38); icon[0].iconAnchor = new GPoint(10,35); icon[0].infoWindowAnchor = new GPoint(15,19); icon[1] = new GIcon(); icon[1].image = "/themes/incredible/images/map/IA_marker_featured.png"; icon[1].iconSize = new GSize(37,38); icon[1].iconAnchor = new GPoint(10,35); icon[1].infoWindowAnchor = new GPoint(15,19); icon[2] = new GIcon(); icon[2].image = "/themes/incredible/images/map/IA_marker_active.png"; icon[2].iconSize = new GSize(37,38); icon[2].iconAnchor = new GPoint(10,35); icon[2].infoWindowAnchor = new GPoint(15,19); icon[3] = icon[2]; icon[4] = icon[2]; icon[5] = icon[2]; icon[6] = icon[2]; icon[7] = icon[2]; icon[8] = icon[2]; icon[9] = icon[2]; icon[10] = icon[2]; var map = null; function ia_load_map() { if (GBrowserIsCompatible()) { var mapObj = document.getElementById("listings_map"); if (mapObj != "undefined" && mapObj != null) { map = new GMap2(document.getElementById("listings_map")); map.setCenter(new GLatLng(33.5319825, -112.0645145), 16, G_NORMAL_MAP); var bds = new GLatLngBounds(new GLatLng(33.28915977, -112.14963503), new GLatLng(33.77480523, -111.97939397)); map.setZoom(map.getBoundsZoomLevel(bds)); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GScaleControl()); map.enableDoubleClickZoom(); } } else { alert("Sorry, the Google Maps API is not compatible with this browser."); } } function isArray(a) {return isObject(a) && a.constructor == Array;} function isObject(a) {return (a && typeof a == 'object') || isFunction(a);} function isFunction(a) {return typeof a == 'function';} function showInfoWindow(idx,html) { map.centerAtLatLng(points[idx]); markers[idx].openInfoWindowHtml(html); }