diff options
-rw-r--r-- | web/cobrands/oxfordshire/position_map.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/cobrands/oxfordshire/position_map.js b/web/cobrands/oxfordshire/position_map.js index a5faf4b2a..c0e7e6399 100644 --- a/web/cobrands/oxfordshire/position_map.js +++ b/web/cobrands/oxfordshire/position_map.js @@ -16,8 +16,23 @@ function position_map_box() { width: map_box_width + 'px', height: map_box_height +'px', margin: 0 }); + if($('#map_box').length) { + if (! $('#occ-map-instructions').length) { + $('#map_box').after("<div id='occ-map-instructions'><p>" + + "Click on a pin and then on the “details” link to see an individual report detail.</p></div>"); + } + var mb_y = $('#map_box').position().top + map_box_height ; + $('#occ-map-instructions').show().css({ + left: '', + right: oxfordshire_right, + bottom: '', + top: mb_y +'px', + width: map_box_width + }); + } } function map_fix() {} var slide_wards_down = 1; + |