diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 15:39:53 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 15:39:53 +0000 |
commit | d6d3a2904cafa7236b5426a9d19f0807c28e153f (patch) | |
tree | 4f256456d7ef6653aa9273bfe264c12879b51132 /web/js/map-OpenLayers.js | |
parent | f38c37216efd158f528f52867b3fd52f556b70d0 (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.js | 3 |
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); }); |