forked from 0x2620/pandora
honor map settings
This commit is contained in:
parent
a02d7f806b
commit
3600620eb7
1 changed files with 9 additions and 1 deletions
|
@ -160,6 +160,8 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
}, data), callback);
|
}, data), callback);
|
||||||
},
|
},
|
||||||
selected: ui.mapSelection,
|
selected: ui.mapSelection,
|
||||||
|
showControls: ui.showMapControls,
|
||||||
|
showLabels: ui.showMapLabels,
|
||||||
showTypes: true,
|
showTypes: true,
|
||||||
toolbar: true,
|
toolbar: true,
|
||||||
width: window.innerWidth - ui.showSidebar * ui.sidebarSize - listSize - 2,
|
width: window.innerWidth - ui.showSidebar * ui.sidebarSize - listSize - 2,
|
||||||
|
@ -169,7 +171,13 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
resize: function() {
|
resize: function() {
|
||||||
$element.resizeMap();
|
$element.resizeMap();
|
||||||
},
|
},
|
||||||
selectplace: selectItem
|
selectplace: selectItem,
|
||||||
|
togglecontrols: function(data) {
|
||||||
|
pandora.UI.set('showMapControls', data.visible);
|
||||||
|
},
|
||||||
|
togglelabels: function(data) {
|
||||||
|
pandora.UI.set('showMapLabels', data.visible);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue