From d73455402f5ced4d03f4142a0f2eb36f254c3b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=92=87=E5=84=BF?= Date: Fri, 4 Jan 2019 12:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E7=9A=84=E6=9C=80=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/js/others.extended.js | 4 +++ works/js/others.wrapper.js | 52 +++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/works/js/others.extended.js b/works/js/others.extended.js index 6f72a9c..9e7a0a3 100644 --- a/works/js/others.extended.js +++ b/works/js/others.extended.js @@ -74,15 +74,19 @@ var menus = [{ // 环形菜单回调函数 function callback1(ele, data) { panduanfood(); + alert("结果已显示在地图中哟(^U^)ノ~YO"); } function callback2(ele, data) { panduanplay(); + alert("结果已显示在地图中哟(^U^)ノ~YO"); } function callback3(ele, data) { panduanscene(); + alert("结果已显示在地图中哟(^U^)ノ~YO"); } function callback4(ele, data) { panduanshop(); + alert("结果已显示在地图中哟(^U^)ノ~YO"); } var content_nakido_def; var desp_nakido_def = ['', diff --git a/works/js/others.wrapper.js b/works/js/others.wrapper.js index dbab0dd..85407d6 100644 --- a/works/js/others.wrapper.js +++ b/works/js/others.wrapper.js @@ -22,7 +22,7 @@ var myIcon; function addfood(point, i) { var mk = new BMap.Marker(point, { icon: myIcon }); - map.addOverlay(mk); + map.addOverlay(mk); //添加图标点击事件 mk.addEventListener("click", function () { var opts = { @@ -320,13 +320,13 @@ function addScene() { //========================================================一站式线路类类标注点击事件及消息窗口======================================================= function labsetStyle(lab) { - lab.setStyle({ - color: "blue", //字体颜色 - fontSize: "16px",//字体大小    - backgroundColor: "0.05", //文本标注背景颜色  - border: "0", - fontWeight: "bold" //字体加粗}); - }); + lab.setStyle({ + fontFamily: "微软雅黑", + color: "bold", //字体颜色 + fontSize: "15px",//字体大小    + backgroundColor: "0.05", //文本标注背景颜色  + border: "0", + }); } function addroot1() { //创建驾车实例 @@ -361,7 +361,8 @@ function addroot1() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 250, // 信息窗口宽度 @@ -456,7 +457,8 @@ function addroot2() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -551,7 +553,8 @@ function addroot3() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -651,7 +654,8 @@ function addroot4() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -746,7 +750,8 @@ function addroot5() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -841,7 +846,8 @@ function addroot6() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -942,7 +948,8 @@ function addroot7() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -1043,7 +1050,8 @@ function addroot8() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -1137,7 +1145,8 @@ function addroot9() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -1238,7 +1247,8 @@ function addroot10() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -1329,7 +1339,8 @@ function addroot11() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度 @@ -1415,7 +1426,8 @@ function addroot12() { //处理回调的路线 function addinformation(lines) { for (var line in lines) { - myline = lines[line].getPolyline(); + myline = lines[line].getPolyline(); + myline.setStrokeColor('red'); myline.addEventListener("click", function () { var opts = { width: 200, // 信息窗口宽度