Merge pull request #126 from tomhughes/url-rewrite
Add an interception point to allow image URLs to be rewritten
This commit is contained in:
@@ -557,6 +557,16 @@ OpenLayers.Util.getImagesLocation = function() {
|
||||
return OpenLayers.ImgPath || (OpenLayers._getScriptLocation() + "img/");
|
||||
};
|
||||
|
||||
/**
|
||||
* Function: getImageLocation
|
||||
*
|
||||
* Returns:
|
||||
* {String} The fully formatted location string for a specified image
|
||||
*/
|
||||
OpenLayers.Util.getImageLocation = function(image) {
|
||||
return OpenLayers.Util.getImagesLocation() + image;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Function: Try
|
||||
|
||||
Reference in New Issue
Block a user