diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-02 13:09:32 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-02 13:09:32 +0100 |
commit | 53b2f8ec146722b76b13696af0769b67973243b1 (patch) | |
tree | 6e2bd57c41659b3ddb4bb1893adc460c635a62ae /www/js/map-OpenLayers.js | |
parent | e159dbbc0204c2c66418b737499b07595f068dcc (diff) |
use css to set crosshair image instead of hard coding it in openlayers control to allow media query retina switching
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 35def29..372d09a 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -280,7 +280,9 @@ OpenLayers.Control.Crosshairs.prototype = OpenLayers.Control.prototype.draw.apply(this, arguments); position = this.getIdealPosition(); this.buttons = new Array(); - var imgLocation = OpenLayers.Util.getImagesLocation() + "crosshairs.png"; + // we set the background image in CSS so we can use media queries for retina + // screens so we want an blank image here + var imgLocation = OpenLayers.Util.getImagesLocation() + "blank.gif"; return OpenLayers.Util.createAlphaImageDiv(OpenLayers.Control.Crosshairs.DIV_ID, position, this.imageSize, imgLocation, "absolute"); }, |