|
@@ -162,3 +162,37 @@ function registerEvent() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ restarRotate();
|
|
|
+ });
|
|
|
+ // 设置按钮点击事件,按钮的tip与功能面板的互相切换
|
|
|
+ $('#sceneSetting').on('click', function () {
|
|
|
+ checkBtnActives(['#mapBg']);
|
|
|
+ if ($(this).hasClass('active')) {
|
|
|
+ $(this).removeClass('active');
|
|
|
+ $(this).children('.control-menu').removeClass('actives');
|
|
|
+ $(this).find('.tooltiptext').css({ "visibility": "visible" });
|
|
|
+ } else {
|
|
|
+ $(this).addClass('active');
|
|
|
+ $(this).children('.control-menu').addClass('actives');
|
|
|
+ $(this).find('.tooltiptext').css({ "visibility": "hidden" });
|
|
|
+ }
|
|
|
+ }).hover(function () {
|
|
|
+ if (!$(this).hasClass('active')) {
|
|
|
+ $(this).find('.tooltiptext').css({ "visibility": "visible" });
|
|
|
+ }
|
|
|
+ }, function () {
|
|
|
+ $(this).find('.tooltiptext').css({ "visibility": "hidden" });
|
|
|
+ });
|
|
|
+ // 设置li标签添加点击事件
|
|
|
+ $('#sceneSetting .control-menu-pane li').on('click', function (ev) {
|
|
|
+ //ev.stopPropagation();
|
|
|
+ if ($(this).hasClass('selected')) {
|
|
|
+ stopRotate();
|
|
|
+ $(this).removeClass('selected');
|
|
|
+ } else {
|
|
|
+ $(this).addClass('selected');
|
|
|
+ restarRotate();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 小地图的开启/关闭按钮的鼠标点击事件
|
|
|
+ $('#miniMap').on('click', function () {
|