Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added init function to map rotation-widget #1576

Benjamineed133bd6b48
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 3c55c4056..e241fc650 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -475,7 +475,7 @@ wv.map.ui = wv.map.ui || function(models, config, Rotation) {
//allow rotation by dragging for polar projections
if(proj.id !== 'geographic') {
- rotation.createRotationWidget(map);
+ rotation.init(map);
rotation.evts.on('rotate-left-max', function() {rotation.freezeClick('wv-map-rotate-left')})
rotation.evts.on('rotate-right-max', function() {rotation.freezeClick('wv-map-rotate-right')})
rotation.evts.on('remove-freeze', rotation.removeFreeze)