/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /* * @requires OpenLayers/BaseTypes.js * @requires OpenLayers/Lang/en.js * @requires OpenLayers/Console.js */ (function() { /** * Before creating the OpenLayers namespace, check to see if * OpenLayers.singleFile is true. This occurs if the * OpenLayers/SingleFile.js script is included before this one - as is the * case with single file builds. */ var singleFile = (typeof OpenLayers == "object" && OpenLayers.singleFile); /** * Cache for the script location returned from * OpenLayers._getScriptLocation */ var scriptLocation; /** * Namespace: OpenLayers * The OpenLayers object provides a namespace for all things OpenLayers */ window.OpenLayers = { /** * Property: _scriptName * {String} Relative path of this script. */ _scriptName: (!singleFile) ? "lib/OpenLayers.js" : "OpenLayers.js", /** * Function: _getScriptLocation * Return the path to this script. * * Returns: * {String} Path to this script */ _getScriptLocation: function () { if (scriptLocation != undefined) { return scriptLocation; } scriptLocation = ""; var isOL = new RegExp("(^|(.*?\\/))(" + OpenLayers._scriptName + ")(\\?|$)"); var scripts = document.getElementsByTagName('script'); for (var i=0, len=scripts.length; i"; } else { var s = document.createElement("script"); s.src = host + jsfiles[i]; var h = document.getElementsByTagName("head").length ? document.getElementsByTagName("head")[0] : document.body; h.appendChild(s); } } if (docWrite) { document.write(allScriptTags.join("")); } } })(); /** * Constant: VERSION_NUMBER */ OpenLayers.VERSION_NUMBER="OpenLayers 2.10 -- $Revision: 10721 $";