/* 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 */ /* * TODO: In 3.0, we will stop supporting build profiles that include * OpenLayers.js. This means we will not need the singleFile and scriptFile * variables, because we don't have to handle the singleFile case any more. */ (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 old single file build profiles that included both * OpenLayers.js and OpenLayers/SingleFile.js. */ var singleFile = (typeof OpenLayers == "object" && OpenLayers.singleFile); /** * Relative path of this script. */ var scriptName = (!singleFile) ? "lib/OpenLayers.js" : "OpenLayers.js"; /** * Namespace: OpenLayers * The OpenLayers object provides a namespace for all things OpenLayers */ window.OpenLayers = { /** * Method: _getScriptLocation * Return the path to this script. This is also implemented in * OpenLayers/SingleFile.js * * Returns: * {String} Path to this script */ _getScriptLocation: (function() { var r = new RegExp("(^|(.*?\\/))(" + scriptName + ")(\\?|$)"), s = document.getElementsByTagName('script'), src, m, l = ""; for(var i=0, len=s.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="$Revision$";