aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-01 15:39:53 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-01 15:39:53 +0000
commitd6d3a2904cafa7236b5426a9d19f0807c28e153f (patch)
tree4f256456d7ef6653aa9273bfe264c12879b51132 /web/js/map-OpenLayers.js
parentf38c37216efd158f528f52867b3fd52f556b70d0 (diff)
Move popups to come out of the middle of the pin.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 87400c9d8..b50f8c30f 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -134,7 +134,8 @@ function fixmystreet_onload() {
feature.geometry.getBounds().getCenterLonLat(),
null,
feature.attributes.title + "<br><a href=/report/" + feature.attributes.id + ">More details</a>",
- null, true, onPopupClose);
+ { size: new OpenLayers.Size(0,0), offset: new OpenLayers.Pixel(0,-40) },
+ true, onPopupClose);
feature.popup = popup;
fixmystreet.map.addPopup(popup);
});