![]()
diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.ts b/src/app/gis-management/gis-labeling/gis-labeling.component.ts
index f452aab..44a1941 100644
--- a/src/app/gis-management/gis-labeling/gis-labeling.component.ts
+++ b/src/app/gis-management/gis-labeling/gis-labeling.component.ts
@@ -211,7 +211,7 @@ export class GisLabelingComponent implements OnInit {
})
}
//地图范围圆圈---重点单位
- circle:ICircle = MapFactory.CircleInstance({
+ circle: ICircle = MapFactory.CircleInstance({
center: null,
radius: 0, //半径
strokeOpacity: 1,
@@ -223,7 +223,7 @@ export class GisLabelingComponent implements OnInit {
zIndex: 50,
})
//地图范围圆圈---水源
- circleofwater:ICircle = MapFactory.CircleInstance({
+ circleofwater: ICircle = MapFactory.CircleInstance({
center: null,
radius: 0, //半径
strokeOpacity: 1,
@@ -235,7 +235,7 @@ export class GisLabelingComponent implements OnInit {
zIndex: 50,
})
//地图范围圆圈---消防力量
- circleoffireForce:ICircle = MapFactory.CircleInstance({
+ circleoffireForce: ICircle = MapFactory.CircleInstance({
center: null,
radius: 0, //半径
strokeOpacity: 1,
@@ -247,7 +247,7 @@ export class GisLabelingComponent implements OnInit {
zIndex: 50,
})
//地图范围圆圈---联动力量
- circleoflinkageForces:ICircle = MapFactory.CircleInstance({
+ circleoflinkageForces: ICircle = MapFactory.CircleInstance({
center: null,
radius: 0, //半径
strokeOpacity: 1,
@@ -402,6 +402,7 @@ export class GisLabelingComponent implements OnInit {
}
this.unitCluster = MapFactory.MarkerClusterInstance(this.map, unitMarkerArrcluster, {
gridSize: gridSize, // 设置网格像素大小
+ maxZoom :15,
render: render //自定义聚合点样式, 自定义非聚合点样式
});
this.unitCluster.on('click', (e) => {
@@ -455,10 +456,17 @@ export class GisLabelingComponent implements OnInit {
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#seePlan'), 'click', (event) => { this.seePlan(item) })//查看预案点击事件
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#share'), 'click', (event) => { this.share(item) })//分享点击事件
}
- },this)
+ }, this)
+ }
+ setMaxZoom() {
+ this.unitCluster ? this.unitCluster.setMaxZoom(0) : null
+ this.waterCluster ? this.waterCluster.setMaxZoom(0) : null
+ this.fireForceCluster ? this.fireForceCluster.setMaxZoom(0) : null
+ this.linkageForcesCluster ? this.linkageForcesCluster.setMaxZoom(0) : null
}
+
//取消显示单位
resetUnit() {
this.keyUnitForm.reset()
@@ -577,6 +585,7 @@ export class GisLabelingComponent implements OnInit {
}
this.fireForceCluster = MapFactory.MarkerClusterInstance(this.map, fireForceMarkerArrcluster, {
gridSize: gridSize, // 设置网格像素大小
+ maxZoom :15,
render: render //自定义聚合点样式, 自定义非聚合点样式
});
@@ -726,6 +735,7 @@ export class GisLabelingComponent implements OnInit {
this.linkageForcesCluster = MapFactory.MarkerClusterInstance(this.map, linkageForcesMarkerArrcluster, {
gridSize: gridSize, // 设置网格像素大小
+ maxZoom :15,
render: render //自定义聚合点样式, 自定义非聚合点样式
});
@@ -900,6 +910,7 @@ export class GisLabelingComponent implements OnInit {
// }
this.waterCluster = MapFactory.MarkerClusterInstance(this.map, waterMarkerArrcluster, {
gridSize: gridSize, // 设置网格像素大小
+ maxZoom :15,
render: render //自定义聚合点样式, 自定义非聚合点样式
});
@@ -912,7 +923,7 @@ export class GisLabelingComponent implements OnInit {
if (e.clusterData.length == 1) {
}
- },this)
+ }, this)
}
//取消显示水源
@@ -1047,9 +1058,9 @@ export class GisLabelingComponent implements OnInit {
zIndex: 0, //叠加层级
resizeEnable: true //是否监控地图容器尺寸变化,
})
- that.map = MapFactory.MapInstance('map', {
- layers: [layer],
- WebGLParams: {preserveDrawingBuffer: true}
+ that.map = MapFactory.MapInstance('map', {
+ layers: [layer],
+ WebGLParams: { preserveDrawingBuffer: true }
});
that.map.setCity('上海市');
that.mouseTool = MapFactory.MouseToolInstance(that.map);
@@ -1062,7 +1073,7 @@ export class GisLabelingComponent implements OnInit {
measureDistance; //测距离
distanceList = []; //测距离 点和线
measureArea; //测面积
- mouseTool:IMouseTool;//二合一测距和侧面积
+ mouseTool: IMouseTool;//二合一测距和侧面积
checkRadio = false //判断测距和侧面积是否选中
//测距离 开始
@@ -1337,7 +1348,7 @@ export class GisLabelingComponent implements OnInit {
var autoOptions = { city: info.city }
let keywords
e == 0 ? keywords = that.routeStart : keywords = that.routeEnd
- var autoComplete = MapFactory.AutocompleteInstance(autoOptions,that);
+ var autoComplete = MapFactory.AutocompleteInstance(autoOptions, that);
autoComplete.search(keywords, function (status, result) {
if (result && result.tips && result.tips.length) { //搜索到数据时
that._ngZone.run(() => {
@@ -1430,7 +1441,7 @@ export class GisLabelingComponent implements OnInit {
this.snackBar.open('未查询到终点坐标信息,请输入有效地址', '确定', config);
return
} else {
- this.routeGIS.search(this,this.startCoordinate, this.endCoordinate,
+ this.routeGIS.search(this, this.startCoordinate, this.endCoordinate,
function (status, result) {
if (status === 'complete') {
that.routes = result.routes[0]
@@ -1453,7 +1464,7 @@ export class GisLabelingComponent implements OnInit {
});
// 根据起终点名称规划驾车导航路线
- this.routeGIS.search(this,this.startCoordinate, this.endCoordinate,
+ this.routeGIS.search(this, this.startCoordinate, this.endCoordinate,
function (status, result) {
if (status === 'complete') {
that.routes = result.routes[0]
diff --git a/src/app/key-unit/water-road/water-road.component.ts b/src/app/key-unit/water-road/water-road.component.ts
index 1567400..c69f3a9 100644
--- a/src/app/key-unit/water-road/water-road.component.ts
+++ b/src/app/key-unit/water-road/water-road.component.ts
@@ -263,6 +263,7 @@ export class WaterRoadComponent implements OnInit {
}
this.waterCluster = MapFactory.MarkerClusterInstance(this.map, waterMarkerArrcluster, {
gridSize: gridSize, // 设置网格像素大小
+ maxZoom :15,
render: render //自定义聚合点样式, 自定义非聚合点样式
});
this.waterCluster.on('click',(e)=>{
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.html b/src/app/ui/collection-tools-building/collection-tools.component.html
index ae15467..47e5d16 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.html
+++ b/src/app/ui/collection-tools-building/collection-tools.component.html
@@ -53,7 +53,7 @@
+
+ +
+
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.scss b/src/app/ui/collection-tools-building/collection-tools.component.scss
index 3d072d4..23a15fe 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.scss
+++ b/src/app/ui/collection-tools-building/collection-tools.component.scss
@@ -1,12 +1,15 @@
@import "./panel.scss";
+
html {
::-webkit-scrollbar {
display: none;
}
}
+
.icongray {
color: #d9d0dc;
}
+
.content {
width: 100%;
height: 100%;
@@ -30,38 +33,46 @@ html {
align-items: center;
min-height: 40px;
background-color: #fff;
+
.zoom {
display: flex;
align-items: center;
margin-left: 15px;
cursor: pointer;
+
img {
margin-right: 3px;
}
}
+
.marginLeftRight {
margin: 0 8px;
font-size: 16px;
user-select: none;
cursor: pointer;
+
.mat-icon {
vertical-align: middle;
font-size: 24px;
}
}
+
.copytobutn {
width: 60px;
min-width: 60px;
display: flex;
justify-content: center;
}
+
span {
height: 24px;
line-height: 24px;
}
+
.patternSwitch {
position: absolute;
right: 140px;
+
span {
font-size: 18px;
cursor: pointer;
@@ -71,15 +82,18 @@ html {
border-radius: 3px;
padding: 0 5px;
}
+
.selectedPattern {
background-color: #2196f3;
color: white;
}
}
+
.rightSave {
cursor: pointer;
position: absolute;
right: 60px;
+
label {
vertical-align: middle;
color: #279fff;
@@ -89,15 +103,6 @@ html {
//头部操作栏
.headerOperate {
- img {
- width: 24px;
- height: 24px;
- vertical-align: middle;
- margin-left: 1px;
- }
- span {
- font-size: 15px;
- }
flex: 5%;
display: flex;
align-items: center;
@@ -105,23 +110,36 @@ html {
box-sizing: border-box;
margin: 3px 0;
background-color: white;
- button {
+ white-space: nowrap;
+ overflow-x: scroll;
+ span {
+ font-size: 15px;
+ }
+ div {
+ cursor: default;
border: 0.5px solid rgb(208, 211, 214);
margin: 0 2px;
+ display: flex;
+ align-items: center;
+ box-sizing: border-box;
+ padding: 3px 8px;
+ height: 96%;
+ border-radius: 3px;
}
+
.editdeletebtn {
display: none;
}
+
.bigeditdeletebtn {
- max-width: 200px;
.bigeditdeletebtnname {
- display: inline-block;
- max-width: 120px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
+ // display: inline-block;
+ // white-space: nowrap;
+ // overflow: hidden;
+ // text-overflow: ellipsis;
}
}
+
.bigeditdeletebtn:hover {
.editdeletebtn {
display: inline-block;
@@ -135,6 +153,7 @@ html {
cursor: pointer;
vertical-align: middle;
}
+
//左右两侧功能栏 统一样式
.publicCss {
border-radius: 5px;
@@ -142,14 +161,17 @@ html {
height: 100%;
top: 0;
}
+
.functionalDomain {
flex: 90%;
overflow: hidden;
+
.functionalDomainContent {
position: relative;
width: 100%;
height: 100%;
}
+
.functionalDomainLeft {
background-color: #fff;
display: flex;
@@ -161,6 +183,7 @@ html {
width: 235px;
left: 0;
z-index: 112;
+
.leftDragDiv {
position: absolute;
right: 0;
@@ -170,6 +193,7 @@ html {
cursor: e-resize;
}
}
+
.functionalDomainRight {
z-index: 1001;
margin-right: 0px;
@@ -184,15 +208,18 @@ html {
min-width: 195px;
width: 195px;
}
+
.functionalDomainRight {
width: 195px;
}
}
+
//右边导航栏显示隐藏
.togglePanel2 {
margin-right: -2000px;
transition: margin-right 1s;
}
+
//左侧导航栏显示隐藏
.togglePanel {
margin-left: -2000px;
@@ -205,12 +232,14 @@ html {
width: 100%;
height: 35px;
background-color: #464646;
+
div {
width: 50%;
height: 35px;
line-height: 35px;
background-color: #595959;
border-radius: 5px;
+
span {
color: white;
font-size: 14px;
@@ -224,13 +253,16 @@ html {
.property {
display: flex;
flex-flow: column;
+
.siteproperty {
height: 100%;
overflow-y: auto;
+
p {
color: #9c9fa5;
padding-left: 5px;
}
+
.siteproperty_size {
background-color: #e3e3e3;
width: 93%;
@@ -238,6 +270,7 @@ html {
border-radius: 3px;
min-height: 21px;
}
+
.rightAttribute {
width: 12%;
height: 99.5%;
@@ -248,54 +281,68 @@ html {
border: 2px solid #464646;
}
}
+
.assetsproperty {
overflow-y: auto;
height: 100%;
+
p {
color: #9c9fa5;
margin: 1px 0 3px 8px;
font-size: 14px;
}
+
span {
font-size: 15px;
}
+
input {
height: 18px;
}
+
.biginput {
display: block;
width: 88%;
margin: 0 auto;
}
+
.smallinput {
display: block;
width: 19%;
margin-left: 8px;
}
+
.textarea {
display: block;
width: 88%;
height: 50px;
margin: 0 auto;
}
+
.swiper-button-next {
right: 6px;
}
+
.swiper-button-prev {
left: 6px;
}
+
.swiper-container {
// --swiper-theme-color: #ff6600;/* 设置Swiper风格 */
// --swiper-navigation-color: #00ff33;/* 单独设置按钮颜色 */
- --swiper-navigation-size: 20px; /* 设置按钮大小 */
+ --swiper-navigation-size: 20px;
+ /* 设置按钮大小 */
}
+
.hoverred:hover {
color: rgb(187, 28, 28);
}
+
.selectDiv {
height: 21px;
position: relative;
margin-bottom: 5px;
+
select {
width: 98px;
height: 22px;
@@ -307,9 +354,11 @@ html {
border-radius: 2px;
}
}
+
.colorBigDiv {
width: 88%;
margin-left: 8px;
+
.colorBigTemplateDiv {
span {
color: #9c9fa5;
@@ -317,6 +366,7 @@ html {
height: 26px;
line-height: 26px;
}
+
.colorTemplateDiv {
width: 65%;
height: 22px;
@@ -334,6 +384,7 @@ html {
float: left;
border: 2px solid white;
}
+
.coloractive {
border: 2px solid black;
}
@@ -341,6 +392,7 @@ html {
}
}
}
+
.hideAllTreeNode {
box-sizing: border-box;
margin: 3px 0;
@@ -349,24 +401,29 @@ html {
height: 24px;
line-height: 24px;
display: flex;
+
label {
display: inline-block;
flex: 1;
cursor: pointer;
}
}
+
//右侧消防要素
.firecategories {
background-color: #fff;
position: relative;
display: flex;
flex-flow: column;
+
.firecategoriesTree {
overflow-y: auto;
height: 100%;
+
mat-tree-node {
position: relative;
}
+
.isLookCss {
position: absolute;
right: 6px;
@@ -382,8 +439,10 @@ div:focus {
//没有图片时显示无图片背景图
.noImgCss {
background: url(../../../assets/images/noImg.png) no-repeat center center;
- background-size: 88% 100%; /*按比例缩放*/
+ background-size: 88% 100%;
+ /*按比例缩放*/
}
+
.input {
width: 18px;
height: 18px;
@@ -400,12 +459,15 @@ div:focus {
font-size: 13px;
cursor: pointer;
}
+
.treeNode:hover {
background-color: #ccebf8;
}
+
.isLookPattern {
display: none;
}
+
.treeText {
overflow: hidden;
white-space: nowrap;
@@ -421,6 +483,7 @@ div:focus {
overflow: hidden;
right: 0;
}
+
.weatherBox {
height: 40px;
width: 700px;
@@ -428,21 +491,25 @@ div:focus {
position: absolute;
right: 0;
transition: right linear 0.5s;
+
.openbtn {
font-size: 45px;
height: 45px;
width: 40px;
}
+
.name {
font-size: 16px;
vertical-align: middle;
margin-left: 3px;
}
+
input {
width: 140px;
height: 22px;
margin-left: 3px;
}
+
select {
width: 96px;
height: 25px;
@@ -450,12 +517,15 @@ div:focus {
vertical-align: middle;
}
}
+
.open {
right: 0px;
}
+
.close {
right: -622px;
}
+
.bottomCss {
position: absolute;
left: 232px;
@@ -466,6 +536,7 @@ div:focus {
z-index: 100;
background-color: white;
border: 1px solid #464646;
+
.dragDiv {
width: 100%;
height: 3px;
@@ -474,9 +545,11 @@ div:focus {
z-index: 1000;
cursor: n-resize;
}
+
.title {
height: 35px;
background-color: #464646;
+
div {
background-color: #464646;
float: left;
@@ -486,10 +559,12 @@ div:focus {
padding-left: 5px;
cursor: pointer;
}
+
.detailsAndattentBtn {
background-color: #595959;
}
}
+
.body {
textarea {
width: 100%;
@@ -497,3 +572,8 @@ div:focus {
}
}
}
+
+
+::-webkit-scrollbar {
+ height: 6px;
+}
diff --git a/src/index.html b/src/index.html
index 2ccf502..7aab4f9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -23,10 +23,10 @@