aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-10-30 17:18:02 +0000
committerStruan Donald <struan@exo.org.uk>2012-10-30 17:18:02 +0000
commit24cbac3d7f0cc2a23c90ce064bb95111c4478bc9 (patch)
tree1523467a7d09350338c5967bdeec42f25b0be171 /www/js/map-OpenLayers.js
parent778c3cb21c00d2c9522cdcc63f55cf6201675853 (diff)
display contents of saved reports
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index caa326d..3c136cf 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -259,7 +259,7 @@ $(document).delegate('#submit-problem', 'pageshow', function(event) {
});
});
-$(document).delegate('#around-page', 'pageshow', function(event) {
+function show_map(event) {
ensureNonZeroHeight();
set_map_config();
@@ -293,6 +293,7 @@ $(document).delegate('#around-page', 'pageshow', function(event) {
}
if (fixmystreet.state_map && fixmystreet.state_map == 'full') {
+ console.log('full page');
// TODO Work better with window resizing, this is pretty 'set up' only at present
var $content = $('.content'),
q = ( $content.offset().left + $content.width() ) / 2;
@@ -362,7 +363,11 @@ $(document).delegate('#around-page', 'pageshow', function(event) {
fixmystreet_onload();
}
fixContentHeight(fixmystreet.map);
-});
+}
+
+$(document).delegate('#around-page', 'pageshow', show_map );
+$(document).delegate('#report-page', 'pageshow', show_map );
+
/* Overridding the buttonDown function of PanZoom so that it does
zoomTo(0) rather than zoomToMaxExtent()