mirage2d 1.2.50 → 1.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,8 @@ export declare class PbfLayer extends baseLayer {
|
|
|
7
7
|
queryParams: {
|
|
8
8
|
onlyField: string;
|
|
9
9
|
};
|
|
10
|
+
DefaultStyle: Style;
|
|
11
|
+
highlightedFeature: null;
|
|
10
12
|
constructor(layerid: string, options: {
|
|
11
13
|
url: string;
|
|
12
14
|
zIndex: number;
|
|
@@ -20,5 +22,7 @@ export declare class PbfLayer extends baseLayer {
|
|
|
20
22
|
});
|
|
21
23
|
tileUrlFunction(tileCoord: any, url: any): any;
|
|
22
24
|
appendTo(map: MirageMap): void;
|
|
23
|
-
|
|
25
|
+
createDefaultStyle(feature: any): Style;
|
|
26
|
+
createHighlightStyle(feature: any): Style;
|
|
27
|
+
createDynamicStyle(): (feature: any) => Style;
|
|
24
28
|
}
|
|
@@ -94,10 +94,10 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
94
94
|
*/
|
|
95
95
|
addGeoJson(classname: string, GeoJson: any): void;
|
|
96
96
|
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
* : 添加GeoJSON数据,需要数据库样式匹配
|
|
98
|
+
* @param {string} classname 图层编号
|
|
99
|
+
* @param {any} GeoJson 标准GeoJson格式
|
|
100
|
+
*/
|
|
101
101
|
addGeoJson3857(classname: string, GeoJson: any): void;
|
|
102
102
|
/**
|
|
103
103
|
* : 添加GeoJSON数据,多边形将转为点格式
|
|
@@ -106,4 +106,36 @@
|
|
|
106
106
|
|
|
107
107
|
.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-out {
|
|
108
108
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABYklEQVQ4T72U4VHCQBCF36tA91KAWIFYgViBWIFYgWMFYgdYgVCBWAFSgdiBFpAsFWSdxcDkQoBkhnF/ZjbfvX377ogjF4/Mw/8CVbUD4MynEJF5k2lqFapqz8yeAPRKkCXJEYAXEVnugm8BVXVgZq/FD+9mtgBwSrJfqF2QvN4FjYCq2jWzTwA/DhARh20qTdMRyQcA0xDCbZ3KCJhl2RTATaHgo+6HLMv8+xXJy+qB3l8FGoB5CKHsXcRV1b6ZvZF8FBH3NKotoJlNkiQZFONdlLtJ3rufbouZPSdJMjwIbKDQEzBrClx7eC4i33Uepmk6JnnXaOQifzMAtdGoRApugYiMI1uqKkrRWAfZo9MxM1+UZzFewl8mN4nYdVM83L7BkwbXLUrF3sfBLQDQBbDy08x8vOohXyEE71lVq9emuEk+3gZa3XYroCvwFyjP8yHJDsnxwaU08GxvS2uFhw78BbzWrxXgMbsHAAAAAElFTkSuQmCC");
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* 基础禁用样式 */
|
|
112
|
+
.ol-ctx-menu-disabled {
|
|
113
|
+
color: #999 !important;
|
|
114
|
+
pointer-events: none !important;
|
|
115
|
+
position: relative;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* 禁用图标效果 */
|
|
119
|
+
.ol-ctx-menu-disabled-icon::after {
|
|
120
|
+
content: "🚫"; /* 或使用背景图片 */
|
|
121
|
+
position: absolute;
|
|
122
|
+
right: 8px;
|
|
123
|
+
top: 50%;
|
|
124
|
+
transform: translateY(-50%);
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* 禁用项悬浮提示样式 */
|
|
129
|
+
.ol-ctx-menu-disabled:hover::before {
|
|
130
|
+
content: attr(title);
|
|
131
|
+
position: absolute;
|
|
132
|
+
bottom: 100%;
|
|
133
|
+
left: 50%;
|
|
134
|
+
transform: translateX(-50%);
|
|
135
|
+
background: #333;
|
|
136
|
+
color: white;
|
|
137
|
+
padding: 4px 8px;
|
|
138
|
+
border-radius: 4px;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
z-index: 1000;
|
|
109
141
|
}
|