diff options
author | Marius Halden <marius.h@lden.org> | 2015-11-16 11:15:10 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-11-16 11:15:10 +0100 |
commit | 1339a64632c441e4d7858bd5946738c9840c624d (patch) | |
tree | 0b1393ca9af05d1af690fbf6c569c195f4136e4c /web/js/map-google.js | |
parent | 17cc40a8a2387669984ae4a36bb0d30d889d1a07 (diff) | |
parent | 4fb5331abd2fa4c89ebeb89bc92a245fadd0aa19 (diff) |
Merge branch 'fiksgatami-dev' into fiksgatami-prod
Oppgrader prod til 1.7
Diffstat (limited to 'web/js/map-google.js')
-rw-r--r-- | web/js/map-google.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/js/map-google.js b/web/js/map-google.js index 8364b40df..0e7cd824e 100644 --- a/web/js/map-google.js +++ b/web/js/map-google.js @@ -192,10 +192,8 @@ function fms_map_initialize() { if (fixmystreet.state_map && fixmystreet.state_map == 'full') { // TODO Work better with window resizing, this is pretty 'set up' only at present - var $content = $('.content'), mb = $('#map_box'), - q = ( $content.offset().left - mb.offset().left + $content.width() ) / 2; - if (q < 0) { q = 0; } - // Need to try and fake the 'centre' being 75% from the left + var q = fixmystreet_midpoint(); + // Need to try and fake the 'centre' being 75% from the edge fixmystreet.map.panBy(-q, -25); } |