By default, OpenLayers expects images in "../img" for non-single file builds,

and "./img" for single file builds. Allow anyone to override this by setting
OpenLayers.ImgPath = '/images/openlayers/' if they choose to. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-10-05 17:40:19 +00:00
parent 9e4bf497ca
commit 6de0698f43

View File

@@ -382,8 +382,10 @@ OpenLayers.Util.getParameterString = function(params) {
* @returns The fully formatted image location string
* @type String
*/
OpenLayers.ImgPath = '';
OpenLayers.Util.getImagesLocation = function() {
return OpenLayers._getScriptLocation() + "img/";
return OpenLayers.ImgPath || (OpenLayers._getScriptLocation() + "img/");
};
/* Originally from Prototype */