aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index b732fa8c0..d25edd36d 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -677,6 +677,13 @@ $.extend(fixmystreet.set_up, {
// If we've already selected this report
if (reportId == window.selected_problem_id) {
+ if (fixmystreet.map.setCenter) {
+ // Second click, zoom in to the report on the map
+ var marker = fixmystreet.maps.get_marker_by_id(reportId);
+ fixmystreet.map.setCenter(
+ marker.geometry.getBounds().getCenterLonLat(),
+ fixmystreet.map.getNumZoomLevels() - 1 );
+ }
return;
}