shuishen
2021-07-20 0c9b152fd0a44fd54d7fe4c8b787d5040d86258a
地图相关
5 files modified
314 ■■■■ changed files
package-lock.json 141 ●●●●● patch | view | raw | blame | history
public/map/popup/html/route-name-layer.html 2 ●●● patch | view | raw | blame | history
public/map/popup/html/routename-and-peoplename.html 2 ●●● patch | view | raw | blame | history
public/map/widgets/patrolManagement/PatrolManagement.js 152 ●●●● patch | view | raw | blame | history
public/map/widgets/patrolManagement/template.html 17 ●●●● patch | view | raw | blame | history
package-lock.json
@@ -915,6 +915,36 @@
        "postcss": "^7.0.0"
      }
    },
    "@mapbox/jsonlint-lines-primitives": {
      "version": "2.0.2",
      "resolved": "https://registry.npm.taobao.org/@mapbox/jsonlint-lines-primitives/download/@mapbox/jsonlint-lines-primitives-2.0.2.tgz",
      "integrity": "sha1-zlblOfg1UrWNENZy6k1vya3HsjQ="
    },
    "@mapbox/mapbox-gl-style-spec": {
      "version": "13.20.1",
      "resolved": "https://registry.nlark.com/@mapbox/mapbox-gl-style-spec/download/@mapbox/mapbox-gl-style-spec-13.20.1.tgz",
      "integrity": "sha1-vPfEKDYCWoMadqHhNI6lScNtr1U=",
      "requires": {
        "@mapbox/jsonlint-lines-primitives": "~2.0.2",
        "@mapbox/point-geometry": "^0.1.0",
        "@mapbox/unitbezier": "^0.0.0",
        "csscolorparser": "~1.0.2",
        "json-stringify-pretty-compact": "^2.0.0",
        "minimist": "^1.2.5",
        "rw": "^1.3.3",
        "sort-object": "^0.3.2"
      }
    },
    "@mapbox/point-geometry": {
      "version": "0.1.0",
      "resolved": "https://registry.npm.taobao.org/@mapbox/point-geometry/download/@mapbox/point-geometry-0.1.0.tgz",
      "integrity": "sha1-ioP5M1x4YO/6Lu7KJUMyqgru2PI="
    },
    "@mapbox/unitbezier": {
      "version": "0.0.0",
      "resolved": "https://registry.npm.taobao.org/@mapbox/unitbezier/download/@mapbox/unitbezier-0.0.0.tgz",
      "integrity": "sha1-FWUb1VOme4WB+zmIEMmK2Go0Uk4="
    },
    "@mrmlnc/readdir-enhanced": {
      "version": "2.2.1",
      "resolved": "https://registry.npm.taobao.org/@mrmlnc/readdir-enhanced/download/@mrmlnc/readdir-enhanced-2.2.1.tgz",
@@ -3627,6 +3657,11 @@
      "integrity": "sha1-6nAm/LAXd+295SEk4h8yfnrpUOQ=",
      "dev": true
    },
    "csscolorparser": {
      "version": "1.0.3",
      "resolved": "https://registry.npm.taobao.org/csscolorparser/download/csscolorparser-1.0.3.tgz",
      "integrity": "sha1-s085HupNqPPpgjHizNjfnAQfFxs="
    },
    "cssesc": {
      "version": "3.0.0",
      "resolved": "https://registry.npm.taobao.org/cssesc/download/cssesc-3.0.0.tgz",
@@ -4269,7 +4304,7 @@
      "dependencies": {
        "tslib": {
          "version": "2.0.3",
          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.0.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz",
          "resolved": "https://registry.npm.taobao.org/tslib/download/tslib-2.0.3.tgz?cache=0&sync_timestamp=1609887446826&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz",
          "integrity": "sha1-jgdBrEX8DCJuWKF7/D5kubxsphw="
        }
      }
@@ -5993,8 +6028,7 @@
    "ieee754": {
      "version": "1.2.1",
      "resolved": "https://registry.npm.taobao.org/ieee754/download/ieee754-1.2.1.tgz?cache=0&sync_timestamp=1603838418666&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fieee754%2Fdownload%2Fieee754-1.2.1.tgz",
      "integrity": "sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I=",
      "dev": true
      "integrity": "sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I="
    },
    "iferr": {
      "version": "0.1.5",
@@ -6742,6 +6776,11 @@
      "dev": true,
      "optional": true
    },
    "json-stringify-pretty-compact": {
      "version": "2.0.0",
      "resolved": "https://registry.npm.taobao.org/json-stringify-pretty-compact/download/json-stringify-pretty-compact-2.0.0.tgz",
      "integrity": "sha1-53xBn1L/AMRaMfB/TIIMJDMUOIU="
    },
    "json-stringify-safe": {
      "version": "5.0.1",
      "resolved": "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson-stringify-safe%2Fdownload%2Fjson-stringify-safe-5.0.1.tgz",
@@ -7076,6 +7115,11 @@
      "requires": {
        "object-visit": "^1.0.0"
      }
    },
    "mapbox-to-css-font": {
      "version": "2.4.0",
      "resolved": "https://registry.npm.taobao.org/mapbox-to-css-font/download/mapbox-to-css-font-2.4.0.tgz",
      "integrity": "sha1-ojtRZkoe6Dm+rvreAT8mVb7po5A="
    },
    "md5.js": {
      "version": "1.3.5",
@@ -7906,6 +7950,31 @@
      "integrity": "sha1-Cb6jND1BhZ69RGKS0RydTbYZCE4=",
      "dev": true
    },
    "ol": {
      "version": "6.6.1",
      "resolved": "https://registry.nlark.com/ol/download/ol-6.6.1.tgz",
      "integrity": "sha1-66OyvVwvbU8k9N3LcTUjvToTI08=",
      "requires": {
        "ol-mapbox-style": "^6.4.1",
        "pbf": "3.2.1",
        "rbush": "^3.0.1"
      }
    },
    "ol-mapbox-style": {
      "version": "6.4.1",
      "resolved": "https://registry.nlark.com/ol-mapbox-style/download/ol-mapbox-style-6.4.1.tgz",
      "integrity": "sha1-PA3WdEMGcNAPqY+aKRAm4X+kdmQ=",
      "requires": {
        "@mapbox/mapbox-gl-style-spec": "^13.20.1",
        "mapbox-to-css-font": "^2.4.0",
        "webfont-matcher": "^1.1.0"
      }
    },
    "olcs": {
      "version": "2.13.0",
      "resolved": "https://registry.nlark.com/olcs/download/olcs-2.13.0.tgz",
      "integrity": "sha1-9vRufNEm66+q+g89PkQGAlJhSeM="
    },
    "on-finished": {
      "version": "2.3.0",
      "resolved": "https://registry.npm.taobao.org/on-finished/download/on-finished-2.3.0.tgz",
@@ -8240,6 +8309,15 @@
      "resolved": "https://registry.npm.taobao.org/pathval/download/pathval-1.1.0.tgz",
      "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
      "dev": true
    },
    "pbf": {
      "version": "3.2.1",
      "resolved": "https://registry.npm.taobao.org/pbf/download/pbf-3.2.1.tgz",
      "integrity": "sha1-tMG55yr5Zs2CxlMWkRFcwECf/io=",
      "requires": {
        "ieee754": "^1.1.12",
        "resolve-protobuf-schema": "^2.1.0"
      }
    },
    "pbkdf2": {
      "version": "3.1.1",
@@ -9107,6 +9185,11 @@
      "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=",
      "dev": true
    },
    "protocol-buffers-schema": {
      "version": "3.5.1",
      "resolved": "https://registry.npm.taobao.org/protocol-buffers-schema/download/protocol-buffers-schema-3.5.1.tgz",
      "integrity": "sha1-g4jnaNODrIy+oj4SgN+tt59BIq0="
    },
    "proxy-addr": {
      "version": "2.0.6",
      "resolved": "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.6.tgz",
@@ -9233,6 +9316,11 @@
      "integrity": "sha1-M0WUG0FTy50ILY7uTNogFqmu9/Y=",
      "dev": true
    },
    "quickselect": {
      "version": "2.0.0",
      "resolved": "https://registry.npm.taobao.org/quickselect/download/quickselect-2.0.0.tgz",
      "integrity": "sha1-8ZaApIal7vtYEwPgI+mPqvJd0Bg="
    },
    "randombytes": {
      "version": "2.1.0",
      "resolved": "https://registry.npm.taobao.org/randombytes/download/randombytes-2.1.0.tgz",
@@ -9274,6 +9362,14 @@
      "version": "0.5.1",
      "resolved": "https://registry.npm.taobao.org/raw-loader/download/raw-loader-0.5.1.tgz",
      "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao="
    },
    "rbush": {
      "version": "3.0.1",
      "resolved": "https://registry.npm.taobao.org/rbush/download/rbush-3.0.1.tgz",
      "integrity": "sha1-X6+op5s7mv3+UAhAOnIMwd6ILs8=",
      "requires": {
        "quickselect": "^2.0.0"
      }
    },
    "read-pkg": {
      "version": "5.2.0",
@@ -9686,6 +9782,14 @@
      "dev": true,
      "optional": true
    },
    "resolve-protobuf-schema": {
      "version": "2.1.0",
      "resolved": "https://registry.npm.taobao.org/resolve-protobuf-schema/download/resolve-protobuf-schema-2.1.0.tgz",
      "integrity": "sha1-nKmp5pzxkrva8QBuwZc5SKpKN1g=",
      "requires": {
        "protocol-buffers-schema": "^3.3.1"
      }
    },
    "resolve-url": {
      "version": "0.2.1",
      "resolved": "https://registry.npm.taobao.org/resolve-url/download/resolve-url-0.2.1.tgz",
@@ -9759,6 +9863,11 @@
      "requires": {
        "aproba": "^1.1.1"
      }
    },
    "rw": {
      "version": "1.3.3",
      "resolved": "https://registry.npm.taobao.org/rw/download/rw-1.3.3.tgz",
      "integrity": "sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q="
    },
    "rx-lite": {
      "version": "4.0.8",
@@ -10420,6 +10529,16 @@
        }
      }
    },
    "sort-asc": {
      "version": "0.1.0",
      "resolved": "https://registry.npm.taobao.org/sort-asc/download/sort-asc-0.1.0.tgz",
      "integrity": "sha1-q3md9h/HPqCVbHnEtTHtHp53J+k="
    },
    "sort-desc": {
      "version": "0.1.1",
      "resolved": "https://registry.npm.taobao.org/sort-desc/download/sort-desc-0.1.1.tgz",
      "integrity": "sha1-GYuMDN6wlcRjNBhh45JdTuNZqe4="
    },
    "sort-keys": {
      "version": "1.1.2",
      "resolved": "https://registry.npm.taobao.org/sort-keys/download/sort-keys-1.1.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsort-keys%2Fdownload%2Fsort-keys-1.1.2.tgz",
@@ -10427,6 +10546,15 @@
      "dev": true,
      "requires": {
        "is-plain-obj": "^1.0.0"
      }
    },
    "sort-object": {
      "version": "0.3.2",
      "resolved": "https://registry.npm.taobao.org/sort-object/download/sort-object-0.3.2.tgz",
      "integrity": "sha1-mODRme3kDgfGGoRAPGHWw7KQ+eI=",
      "requires": {
        "sort-asc": "^0.1.0",
        "sort-desc": "^0.1.1"
      }
    },
    "source-list-map": {
@@ -12017,6 +12145,11 @@
        "defaults": "^1.0.3"
      }
    },
    "webfont-matcher": {
      "version": "1.1.0",
      "resolved": "https://registry.npm.taobao.org/webfont-matcher/download/webfont-matcher-1.1.0.tgz",
      "integrity": "sha1-mM6VCXsp4x++czBT4Q5XFkLRxsc="
    },
    "webpack": {
      "version": "4.46.0",
      "resolved": "https://registry.npm.taobao.org/webpack/download/webpack-4.46.0.tgz?cache=0&sync_timestamp=1610580335809&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack%2Fdownload%2Fwebpack-4.46.0.tgz",
@@ -12777,7 +12910,7 @@
      "dependencies": {
        "tslib": {
          "version": "2.0.3",
          "resolved": "https://registry.nlark.com/tslib/download/tslib-2.0.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz",
          "resolved": "https://registry.npm.taobao.org/tslib/download/tslib-2.0.3.tgz?cache=0&sync_timestamp=1609887446826&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-2.0.3.tgz",
          "integrity": "sha1-jgdBrEX8DCJuWKF7/D5kubxsphw="
        }
      }
public/map/popup/html/route-name-layer.html
@@ -19,7 +19,7 @@
            <li>
                <textarea placeholder="请输入路线描述" style="resize:none;outline:none;" class='route-name-layer-textarea'></textarea>
            </li>
            <li>
            <li style="display: none;">
                <select peopleid='' class='route-personnel'>
                </select>
            </li>
public/map/popup/html/routename-and-peoplename.html
@@ -16,7 +16,7 @@
            <li>
                <span>路线:</span> <input type="text" class='routename-update' disabled='disabled'>
            </li>
            <li>
            <li style="display: none !important;">
                <span>人员:</span>
                <select peopleid='' class='peoplename-update'>
                </select>
public/map/widgets/patrolManagement/PatrolManagement.js
@@ -174,12 +174,18 @@
            objThis = this;
            this.addEntitys = new GraphicsLayer({id: 'addEntitys'});
      this.addEntitys = new GraphicsLayer({
        id: 'addEntitys'
      });
            // 添加点面线的图层
            this.addPolygonEntitys = new GraphicsLayer({id: 'addPolygonEntitys'});
      this.addPolygonEntitys = new GraphicsLayer({
        id: 'addPolygonEntitys'
      });
            // 添加所有图层的地方
            this.entityPolygonAll = new GraphicsLayer({id: 'entityPolygonAll'});
      this.entityPolygonAll = new GraphicsLayer({
        id: 'entityPolygonAll'
      });
            this._map.addLayer(this.addEntitys);
@@ -233,7 +239,9 @@
            $('.police-container .police-container-distribute .table .tbody').off('click', 'tr').on('click', 'tr', function () {
                var lgtd = Number($(this).attr('lgtd'));
                var lttd = Number($(this).attr('lttd'));
                var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点
        var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({
          wkid: 4326
        })); //根据输入坐标信息找地图上的点
                that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大
            })
            // 编辑,跟进按钮元素的父元素的点击事件
@@ -681,7 +689,9 @@
                event.stopPropagation();
                var lgtd = Number($(this).parent().parent().attr('lgtd'));
                var lttd = Number($(this).parent().parent().attr('lttd'));
                var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点
        var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({
          wkid: 4326
        })); //根据输入坐标信息找地图上的点
                that.newElectronicFenceId = null;
                that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大
                var graphic = that.entityPolygonAll.graphics;
@@ -705,7 +715,9 @@
                event.stopPropagation();
                var lgtd = Number($(this).attr('lgtd'));
                var lttd = Number($(this).attr('lttd'));
                var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点
        var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({
          wkid: 4326
        })); //根据输入坐标信息找地图上的点
                that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大
@@ -809,7 +821,7 @@
                        shadeClose: false,
                        shade: 0.3,
                        maxmin: false, //开启最大化最小化按钮
                        area: ['320px', '266px'],
            area: ['320px', '216px'],
                        offset: 'auto',
                        skin: 'route-name-layer',
                        content: url,
@@ -836,14 +848,14 @@
                                    return
                                }
                                if (pepleRealId == '') {
                                    that.layuiLayer.msg('请选择人员', {
                                        time: 1000
                                    })
                                    return
                                }
                // if (pepleRealId == '') {
                //   that.layuiLayer.msg('请选择人员', {
                //     time: 1000
                //   })
                //   return
                // }
                                that.peopleRealName = peopleRealName;
                                that.pepleRealId = pepleRealId;
                that.pepleRealId = '485';
                                that.globalRegionName = routeName;
                                that.routeOrRegionDescribe = routeDescribe;
@@ -897,7 +909,7 @@
                        shadeClose: false,
                        shade: 0.3,
                        maxmin: false, //开启最大化最小化按钮
                        area: ['320px', '172px'],
            area: ['320px', '132px'],
                        offset: 'auto',
                        skin: 'routename-and-peoplename',
                        content: url,
@@ -912,17 +924,20 @@
                                console.log(peoplelayerName, peoplelayerId);
                                if (peoplelayerName == peopleName) {
                                    that.layuiLayer.close(index);
                                    that.layuiLayer.msg('人员未更改!');
                                } else {
                // if (peoplelayerName == peopleName) {
                //   that.layuiLayer.close(index);
                //   that.layuiLayer.msg('人员未更改!');
                // } else {
                                    $.ajax({
                                        url: 'http://s16s652780.51mypc.cn/api/duty/duty/updatedtInfo',
                                        type: 'POST',
                                        data: {
                                            rid: routeId,
                                            snumber: peoplelayerId,
                                            sname: peoplelayerName
                      sname: '张三'
                                        },
                                        dataType: 'JSON',
                                        success: function (res) {
@@ -933,7 +948,9 @@
                                            }
                                        }
                                    })
                                }
                // }
                            })
                        }
@@ -1096,24 +1113,64 @@
            }
      // $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').empty();
      // $.ajax({
      //     url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectqy',
      //     type: 'GET',
      //     dataType: 'JSON',
      //     success: function (res) {
      //         var result = res.data;
      //         $('.police-dispatching .police-container .police-container-patrol .main-content .select>ul>li>div:eq(0)').html(result[0].regionName + '<i></i>').attr('regionId', result[0].regionId);
      //         for (var i = 0; i < result.length; i++) {
      //             $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').append($("<li regionId='" + result[i].regionId + "'>" + result[i].regionName + "</li>"))
      //         }
      //     }
      // })
      // that.getRouteInformation($('.police-dispatching .police-container .police-container-patrol .main-content>li:eq(1) .table .tbody tbody'), '');
      that.polygonFlag = false;
      that.entityPolygonAll.clear();
      that.modifyPolygon();
      // 切换时清除新增点线面数组中保存得数据,与清除地图上得实体
      that.polygonData = [];
      that.addPolygonEntitys.clear();
            that.treatmentIndex = null;
            that.tabIndex = 0;
            $('.police-dispatching-tab li:eq(0)').addClass('on').siblings().removeClass('on');
            $($('.police-container > div')[0]).stop().show().siblings().stop().hide();
      that.tabIndex = 1;
      that.patrolIndex = 1;
      $('.police-dispatching-tab li:eq(1)').addClass('on').siblings().removeClass('on');
      $($('.police-container > div')[1]).stop().show().siblings().stop().hide();
            $('.police-dispatching .police-container .distribute-district .select-list ul').empty();
            $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=''>全部</li>");
            $.ajax({
                url: 'http://s16s652780.51mypc.cn/api/district/district/selectList',
                type: 'POST',
        url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectqy',
        type: 'GET',
                dataType: 'JSON',
                success: function (data) {
                    for (var i = 0; i < data.data.length; i++) {
                        $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=" + data.data[i].addvcd + ">" + data.data[i].addvnm + "</li>");
        success: function (res) {
          var result = res.data;
          $('.police-dispatching .police-container .police-container-patrol .main-content .select>ul>li>div:eq(0)').html(result[0].regionName + '<i></i>').attr('regionId', result[0].regionId);
          for (var i = 0; i < result.length; i++) {
            $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').append($("<li regionId='" + result[i].regionId + "'>" + result[i].regionName + "</li>"))
                    }
                }
            })
      that.getRouteInformation($('.police-dispatching .police-container .police-container-patrol .main-content>li:eq(1) .table .tbody tbody'), '');
      // $.ajax({
      //     url: 'http://s16s652780.51mypc.cn/api/district/district/selectList',
      //     type: 'POST',
      //     dataType: 'JSON',
      //     success: function (data) {
      //         for (var i = 0; i < data.data.length; i++) {
      //             $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=" + data.data[i].addvcd + ">" + data.data[i].addvnm + "</li>");
      //         }
      //     }
      // })
            layui.use('laydate', function () {
@@ -1600,7 +1657,7 @@
                        objId.routeName = result[i].routeName;
                        objId.remarks = result[i].remarks;
                        that.addPolygonAll(that.entityPolygonAll, entityArr, objId);
                        str += "<tr flyid=" + result[i].id + " flyname=" + result[i].routeName + "> <td>" + (Number(i) + 1) + "</td> <td>" + result[i].sname + "</td> <td>" + result[i].routeName + "</td> <td> <a href='javascript:;' title=" + result[i].rtime + ">" + result[i].rtime.substr(5, 11) + "</a></td> <td><input type='button' value='编辑'></td> </tr>";
            str += "<tr flyid=" + result[i].id + " flyname=" + result[i].routeName + "> <td>" + (Number(i) + 1) + "</td> <td style='display: none;'>" + result[i].sname + "</td> <td>" + result[i].routeName + "</td> <td> <a href='javascript:;' title=" + result[i].rtime + ">" + result[i].rtime.substr(5, 11) + "</a></td> <td><input type='button' value='编辑'></td> </tr>";
                        dom.append(str);
                        str = '';
                    }
@@ -1672,7 +1729,9 @@
            var symbol = new esri.symbol.PictureMarkerSymbol(outlineColors, 26, 26);
            symbol.name = name;
            var pt = new Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));
      var pt = new Point(lgtd, lttd, new esri.SpatialReference({
        wkid: 4326
      }));
            pt.entityData = item;
            var graphic = new esri.Graphic(pt, symbol);
            entitys.add(graphic);
@@ -1682,7 +1741,9 @@
        },
        addPoint: function (entitys, lgtd, lttd) {
            var symbol = new esri.symbol.PictureMarkerSymbol('./images/real-time-callPolice.png', 10, 10);
            var pt = new Point(lgtd, lttd, new SpatialReference({wkid: 4326}));
      var pt = new Point(lgtd, lttd, new SpatialReference({
        wkid: 4326
      }));
            var graphic = new esri.Graphic(pt, symbol);
            entitys.add(graphic);
        },
@@ -1981,7 +2042,9 @@
            //init the layer, more options are available and explained in the cluster layer constructor
            that.clusterLayer = new FlareClusterLayer({
                id: "flare-cluster-layer",
                spatialReference: new esri.SpatialReference({"wkid": 4326}),
        spatialReference: new esri.SpatialReference({
          "wkid": 4326
        }),
                subTypeFlareProperty: "facilityType",
                singleFlareTooltipProperty: "name",
                displaySubTypeFlares: true,
@@ -2015,10 +2078,21 @@
            //set up a popup template
            var template = new PopupTemplate({
                title: "{name}",
                fieldInfos: [
                    {fieldName: "facilityType", label: "Facility Type", visible: true},
                    {fieldName: "postcode", label: "Post Code", visible: true},
                    {fieldName: "isOpen", label: "Opening Hours", visible: true}
        fieldInfos: [{
            fieldName: "facilityType",
            label: "Facility Type",
            visible: true
          },
          {
            fieldName: "postcode",
            label: "Post Code",
            visible: true
          },
          {
            fieldName: "isOpen",
            label: "Opening Hours",
            visible: true
          }
                ]
            });
@@ -2031,8 +2105,8 @@
            that.clusterLayer.addData(datas);
        }
        , clearLayer: function () {
    },
    clearLayer: function () {
            var that = this;
            that._map.removeLayer(that.clusterLayer);
            that.clusterLayer = null;
public/map/widgets/patrolManagement/template.html
@@ -85,11 +85,11 @@
        <!-- 巡逻管理 -->
        <div class="police-container-patrol">
            <ul class='tab-header'>
                <li class='on'>巡逻区域</li>
                <li>巡逻路线</li>
                <li style="display: none !important;">巡逻区域</li>
                <li class='on' >巡逻路线</li>
            </ul>
            <ul class='main-content'>
                <li>
                <li style="display: none;">
                    <div class='distribute-table-content'>
                        <div class="operation">
                            <input type="text" placeholder="请输入区域名称" class='route-name'>
@@ -116,9 +116,9 @@
                        </div>
                    </div>
                </li>
                <li style="display: none;">
                <li>
                    <div class='distribute-table-content'>
                        <div class="operation">
                        <!-- <div class="operation">
                            <div class='select'>
                                <ul>
                                    <li id='patrolRoute'>
@@ -135,11 +135,12 @@
                                </ul>
                            </div>
                            <input type="button" value='新增' class='add'>
                        </div>
                        </div> -->
                        <div class="operation">
                            <input type="text" placeholder="请输入路线名称" class='route-name'>
                            <input type="button" value='查询' class='query'>
                            <input type="button" value='新增' class='add'>
                        </div>
                        <div class="table">
                            <div class="thead">
@@ -147,7 +148,7 @@
                                    <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>人员</th>
                                            <th style="display: none;">人员</th>
                                            <th>路线名称</th>
                                            <th>时间</th>
                                            <th>操作</th>