Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
最后的最后
Browse files Browse the repository at this point in the history
  • Loading branch information
璇儿 committed Jan 4, 2019
1 parent ead2256 commit d734554
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 20 deletions.
4 changes: 4 additions & 0 deletions works/js/others.extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ['',
Expand Down
52 changes: 32 additions & 20 deletions works/js/others.wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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() {
//创建驾车实例
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down Expand Up @@ -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, // 信息窗口宽度
Expand Down

0 comments on commit d734554

Please sign in to comment.