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:
@@ -382,8 +382,10 @@ OpenLayers.Util.getParameterString = function(params) {
|
|||||||
* @returns The fully formatted image location string
|
* @returns The fully formatted image location string
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
OpenLayers.ImgPath = '';
|
||||||
OpenLayers.Util.getImagesLocation = function() {
|
OpenLayers.Util.getImagesLocation = function() {
|
||||||
return OpenLayers._getScriptLocation() + "img/";
|
return OpenLayers.ImgPath || (OpenLayers._getScriptLocation() + "img/");
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Originally from Prototype */
|
/* Originally from Prototype */
|
||||||
|
|||||||
Reference in New Issue
Block a user