From 6fea8abb2f4770e4a16ae17fc5582124ff0a5420 Mon Sep 17 00:00:00 2001 From: Steven Day Date: Fri, 16 Nov 2012 10:31:17 +0000 Subject: Make controls and initial zoom level work --- web/js/map-OpenLayers.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web/js/map-OpenLayers.js') 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, -- cgit v1.2.3