Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

removed excess events and callbacl funcs #1576

Benjamin4eddb2b437a0
diff --git a/web/js/map/wv.map.rotate.js b/web/js/map/wv.map.rotate.js
index 4df455cfb..b99f96a4f 100644
--- a/web/js/map/wv.map.rotate.js
+++ b/web/js/map/wv.map.rotate.js
@@ -196,34 +196,5 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
}
map.getView().rotate(map.getView().getRotation() - (Math.PI / amount));
};
-
-
- /*
- * Adds 'freeze' class to rotate button that has reached it's limit
- *
- * @method freezeClick
- * @static
- *
- * @returns {void}
- */
- this.freezeClick = function( className ) {
- $('.' + className).addClass('ui-button-click-prevent');
- };
-
-
- /*
- * Removes freeze class to rotate button that has reached it's limit
- *
- * @method freezeClick
- * @static
- *
- * @returns {void}
- */
- this.removeFreeze = function() {
- var freezeEl = $('.wv-map-zoom.ui-button-click-prevent');
- if(freezeEl) {
- freezeEl.removeClass('ui-button-click-prevent');
- }
- };
};
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 355fba727..8fea43c15 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -477,9 +477,6 @@ wv.map.ui = wv.map.ui || function(models, config, Rotation) {
//allow rotation by dragging for polar projections
if(proj.id !== 'geographic') {
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)
map.addInteraction(rotateInteraction);
map.addInteraction(mobileRotation);
}