Skip to content

Commit 4d5652c

Browse files
committed
Redraws map when GTT tab is shown
1 parent 4740114 commit 4d5652c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

assets/javascripts/app.map.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ App.map = (function ($, publ) {
169169
}, 200);
170170
});
171171

172+
// Redraw the map, when a GTT Tab gets activated
173+
$("#tab-gtt").click(function(){
174+
map.updateSize();
175+
publ.zoomToExtent();
176+
});
177+
172178
// Add LayerSwitcher Image Toolbar
173179
map.addControl(new ol.control.LayerPopup());
174180
};

0 commit comments

Comments
 (0)