From 6b5d7c627e8412c3d739f399f6b05a9fe0729e30 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 01 Jun 2018 14:08:28 +0800
Subject: [PATCH] 地图相关资源

---
 src/main/webapp/page/scheme-helper.html |   64 ++++++++++++++++++++++++++------
 1 files changed, 52 insertions(+), 12 deletions(-)

diff --git a/src/main/webapp/page/scheme-helper.html b/src/main/webapp/page/scheme-helper.html
index 4565476..2ef3e40 100644
--- a/src/main/webapp/page/scheme-helper.html
+++ b/src/main/webapp/page/scheme-helper.html
@@ -3,9 +3,9 @@
 <head>
     <meta charset="utf-8" />
     <title>������������������</title>
-    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=rER1sgBIcQxkfNSlm2wmBGZGgEERrooM"></script>
-    <script type="text/javascript" src="/js/jquery.min.js"></script>
 </head>
+<link rel="stylesheet" type="text/css" href="/css/default.css">
+<link rel="stylesheet" href="/css/Lobibox.min.css"/>
 <style type="text/css">
     body,
     html,
@@ -13,24 +13,25 @@
     #mapCanvas {
         width: 100%;
         height: 100%;
-        overflow: hidden;
-        margin: 0;
-        padding: 0;
+        /* overflow: hidden; */
+        /* margin: 0; */
+        /* padding: 0; */
         z-index: 0;
-        font-size: 14px;
-        font-family: "������������";
+        /* font-size: 14px; */
+        /* font-family: "������������"; */
     }
 
     .popup-box {
         position: absolute;
         z-index: 1;
+        font-size: 14px;
         background-color: white;
         top: 3%;
         left: 1%;
         padding: 14px 10px 0px;
         text-align: center;
-        width: 280px;
-        height: 110px;
+        width: 290px;
+        height: 130px;
     }
 
     .search-box {
@@ -49,7 +50,14 @@
         text-align: left;
         padding-left: 2px;
     }
+    input[type="button"] {
+        cursor: pointer;
+    }
+    input[type="radio"] {
+        cursor: pointer;
+    }
 </style>
+<body>
 <div class="main-body">
     <div class="popup-box">
         <table>
@@ -115,8 +123,9 @@
     </div>
     <div id="mapCanvas"></div>
 </div>
-
-<body>
+    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=rER1sgBIcQxkfNSlm2wmBGZGgEERrooM"></script>
+    <script type="text/javascript" src="/js/jquery.min.js"></script>
+    <script type="text/javascript" src="/js/lobibox.min.js"></script>
     <script>
         var baiduMap;
         var markerManager = {
@@ -164,23 +173,48 @@
         // 0,������������1������������������2���������������������3���������������
         function clickHandle(args, key) {
             var handleValue = parseInt($("input[name='mapClickHandle']:checked").val());
+            var handleName = "";
             switch (handleValue) {
                 case 0:
+                    clickHandle.counter +=1;
+                    handleName += "���������";
                     break;
                 case 1:
                     addMpoint(args.point);
+                    handleName += "[������]������";
                     break;
                 case 2:
                     addStar(args.point);
+                    handleName += "[���������]������";
                     break;
                 case 3:
-                    removeOverlay(key, this);
+                     handleName += "������������";
+                    if(this instanceof BMap.Marker){
+                        removeOverlay(key,this);
+                        clickHandle.counter -=1;
+                    }else{
+                        clickHandle.counter +=1;
+                    }
                     break;
             }
+            if(clickHandle.counter>=4 ){
+                var msg = "���������������:���"+handleName+"���,������������������������������������������"
+                Lobibox.notify('info', {
+                    size: 'mini',
+                    width: 500,
+                    // delay: false,
+                    icon: false,
+                    msg: msg
+                });
+                clickHandle.counter = 0;
+            }
+
         }
+        clickHandle.counter = 0;
         var switchMenuItems = {};
         switchClickHanld = function (value) {
             value = value.toString();
+            clickHandle.counter = 0;
             $("input[name='mapClickHandle']").each(function () {
                 var handleValue = $(this).val().toString();
                 if (handleValue === value) {
@@ -348,6 +382,12 @@
                 "click",
                 clickHandle
             );
+            map.addEventListener(
+                "dblclick",
+                function(){
+                    clickHandle.counter -=2;
+                }
+            );
             return map;
         }
         (function ($) {

--
Gitblit v1.8.0