diff options
author | Steven Day <steve@mysociety.org> | 2012-11-16 10:31:17 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-11-26 12:46:43 +0000 |
commit | 6fea8abb2f4770e4a16ae17fc5582124ff0a5420 (patch) | |
tree | 0be9ca1d41e3581a7700b6aa5f81c4b485dd9d77 /web/js/map-OpenLayers.js | |
parent | b6061833fdcf893d89ba32d9e49140ac140f5b41 (diff) |
Make controls and initial zoom level work
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 2bc20af0c..d4bf7800c 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -258,7 +258,7 @@ $(function(){ // call that instead of setting the map up ourselves if(typeof fixmystreet.map_setup !== "undefined") { fixmystreet.map_setup(function () { - // TODO - can this go inside afterMapInit()? + // TODO - can this go inside afterMapInit() so it's not duped? if ($('html').hasClass('mobile') && fixmystreet.page == 'around') { $('#fms_pan_zoom').css({ top: '2.75em !important' }); } @@ -266,6 +266,11 @@ $(function(){ }); } else { + // TODO - can this go inside afterMapInit() so it's not duped? + if ($('html').hasClass('mobile') && fixmystreet.page == 'around') { + $('#fms_pan_zoom').css({ top: '2.75em !important' }); + } + // Create the basics of the map fixmystreet.map = new OpenLayers.Map("map", { controls: fixmystreet.controls, |