From 3600620eb74a94e8afbcbf08930b4e0595dcdb73 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 4 Oct 2011 02:26:54 +0000 Subject: [PATCH] honor map settings --- static/js/pandora/ui/navigationView.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/ui/navigationView.js b/static/js/pandora/ui/navigationView.js index ec7e81c8..823b10f1 100644 --- a/static/js/pandora/ui/navigationView.js +++ b/static/js/pandora/ui/navigationView.js @@ -160,6 +160,8 @@ pandora.ui.navigationView = function(type, videoRatio) { }, data), callback); }, selected: ui.mapSelection, + showControls: ui.showMapControls, + showLabels: ui.showMapLabels, showTypes: true, toolbar: true, width: window.innerWidth - ui.showSidebar * ui.sidebarSize - listSize - 2, @@ -169,7 +171,13 @@ pandora.ui.navigationView = function(type, videoRatio) { resize: function() { $element.resizeMap(); }, - selectplace: selectItem + selectplace: selectItem, + togglecontrols: function(data) { + pandora.UI.set('showMapControls', data.visible); + }, + togglelabels: function(data) { + pandora.UI.set('showMapLabels', data.visible); + } }) );