my-openlayer 2.4.4 → 2.4.7
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.
- package/CHANGELOG.md +105 -3
- package/core/Point.js +12 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.4.
|
|
3
|
+
## [2.4.7] - 2026-01-30
|
|
4
4
|
|
|
5
5
|
### ✨ Features
|
|
6
6
|
|
|
@@ -50,10 +50,11 @@
|
|
|
50
50
|
- 添加详细模块文档并更新发布配置
|
|
51
51
|
- update README with branch strategy and add migration guide
|
|
52
52
|
|
|
53
|
-
## [2.4.
|
|
53
|
+
## [2.4.6] - 2026-01-30
|
|
54
54
|
|
|
55
55
|
### ✨ Features
|
|
56
56
|
|
|
57
|
+
- **SelectHandler:** 重构选择交互以支持独立样式渲染和多选隔离
|
|
57
58
|
- 重构Polygon样式处理并添加示例组件
|
|
58
59
|
- **core:** 添加基于GeoJSON数据的地图定位功能
|
|
59
60
|
- **core:** 添加地图定位功能并重构点位相关方法
|
|
@@ -99,5 +100,106 @@
|
|
|
99
100
|
- 添加详细模块文档并更新发布配置
|
|
100
101
|
- update README with branch strategy and add migration guide
|
|
101
102
|
|
|
102
|
-
|
|
103
|
+
## [2.4.5] - 2026-01-30
|
|
104
|
+
|
|
105
|
+
### ✨ Features
|
|
106
|
+
|
|
107
|
+
- **SelectHandler:** 重构选择交互以支持独立样式渲染和多选隔离
|
|
108
|
+
- 重构Polygon样式处理并添加示例组件
|
|
109
|
+
- **core:** 添加基于GeoJSON数据的地图定位功能
|
|
110
|
+
- **core:** 添加地图定位功能并重构点位相关方法
|
|
111
|
+
- **Point:** 添加闪烁点功能及示例
|
|
112
|
+
- **core:** 为Polygon添加layerName选项并调整图层添加逻辑
|
|
113
|
+
- **Point:** 添加setOneVisibleByProp方法控制点显示
|
|
114
|
+
- **Polygon:** 优化遮罩功能支持多几何图形处理
|
|
115
|
+
- **测量工具:** 添加测量距离和面积功能及工具栏样式
|
|
116
|
+
- **地图:** 添加自定义投影配置支持
|
|
117
|
+
- **日志管理:** 实现统一日志开关与级别控制
|
|
118
|
+
- **SelectHandler:** 新增要素选择处理器模块
|
|
119
|
+
- upgrade OpenLayers to v10.6.1 and update project to v2.0.0
|
|
120
|
+
- update MapBaseLayers to handle optional token and improve annotation layer management
|
|
121
|
+
- 重新添加已清理的App.vue文件,移除了所有敏感token信息
|
|
122
|
+
- 重构Vue模板点位功能并优化事件管理
|
|
123
|
+
- **Polygon:** 改进图像图层处理逻辑并添加更新功能
|
|
124
|
+
- 添加验证工具类并重构现有验证逻辑
|
|
125
|
+
- **地图工具:** 重构地图工具类并增强错误处理
|
|
126
|
+
- 重构类型系统并增强核心功能
|
|
127
|
+
|
|
128
|
+
### 🐛 Bug Fixes
|
|
129
|
+
|
|
130
|
+
- **core:** 改进Vue依赖检测逻辑并更新版本号
|
|
131
|
+
- **VueTemplatePoint:** 修复Vue3环境下pointData的类型定义
|
|
132
|
+
- **core:** 修正Line类中layerName属性设置错误
|
|
133
|
+
- resolve TypeScript build error in MapBaseLayers.ts
|
|
134
|
+
|
|
135
|
+
### ⚡ Performance
|
|
136
|
+
|
|
137
|
+
- **Polygon:** 优化GeoJSON解析性能,直接注入layerName
|
|
138
|
+
|
|
139
|
+
### ♻️ Refactor
|
|
140
|
+
|
|
141
|
+
- **MapBaseLayers:** 重构图层管理逻辑,优化代码结构和可维护性
|
|
142
|
+
- **ConfigManager:** 集中管理默认配置并移除无用接口
|
|
143
|
+
- **样式处理:** 统一处理自定义样式逻辑并修复代码格式
|
|
144
|
+
- 将nameKey重命名为textKey以提高语义清晰度
|
|
145
|
+
- 更新依赖项并优化类型导出结构
|
|
146
|
+
- **core:** 重构DomPoint和MapBaseLayers类,优化代码结构和功能
|
|
147
|
+
|
|
148
|
+
### 📝 Documentation
|
|
149
|
+
|
|
150
|
+
- 添加详细模块文档并更新发布配置
|
|
151
|
+
- update README with branch strategy and add migration guide
|
|
103
152
|
|
|
153
|
+
# Changelog
|
|
154
|
+
|
|
155
|
+
## [2.4.3] - 2026-01-27
|
|
156
|
+
|
|
157
|
+
### ✨ Features
|
|
158
|
+
|
|
159
|
+
- 重构Polygon样式处理并添加示例组件
|
|
160
|
+
- **core:** 添加基于GeoJSON数据的地图定位功能
|
|
161
|
+
- **core:** 添加地图定位功能并重构点位相关方法
|
|
162
|
+
- **Point:** 添加闪烁点功能及示例
|
|
163
|
+
- **core:** 为Polygon添加layerName选项并调整图层添加逻辑
|
|
164
|
+
- **Point:** 添加setOneVisibleByProp方法控制点显示
|
|
165
|
+
- **Polygon:** 优化遮罩功能支持多几何图形处理
|
|
166
|
+
- **测量工具:** 添加测量距离和面积功能及工具栏样式
|
|
167
|
+
- **地图:** 添加自定义投影配置支持
|
|
168
|
+
- **日志管理:** 实现统一日志开关与级别控制
|
|
169
|
+
- **SelectHandler:** 新增要素选择处理器模块
|
|
170
|
+
- upgrade OpenLayers to v10.6.1 and update project to v2.0.0
|
|
171
|
+
- update MapBaseLayers to handle optional token and improve annotation layer management
|
|
172
|
+
- 重新添加已清理的App.vue文件,移除了所有敏感token信息
|
|
173
|
+
- 重构Vue模板点位功能并优化事件管理
|
|
174
|
+
- **Polygon:** 改进图像图层处理逻辑并添加更新功能
|
|
175
|
+
- 添加验证工具类并重构现有验证逻辑
|
|
176
|
+
- **地图工具:** 重构地图工具类并增强错误处理
|
|
177
|
+
- 重构类型系统并增强核心功能
|
|
178
|
+
|
|
179
|
+
### 🐛 Bug Fixes
|
|
180
|
+
|
|
181
|
+
- **core:** 改进Vue依赖检测逻辑并更新版本号
|
|
182
|
+
- **VueTemplatePoint:** 修复Vue3环境下pointData的类型定义
|
|
183
|
+
- **core:** 修正Line类中layerName属性设置错误
|
|
184
|
+
- resolve TypeScript build error in MapBaseLayers.ts
|
|
185
|
+
|
|
186
|
+
### ⚡ Performance
|
|
187
|
+
|
|
188
|
+
- **Polygon:** 优化GeoJSON解析性能,直接注入layerName
|
|
189
|
+
|
|
190
|
+
### ♻️ Refactor
|
|
191
|
+
|
|
192
|
+
- **MapBaseLayers:** 重构图层管理逻辑,优化代码结构和可维护性
|
|
193
|
+
- **ConfigManager:** 集中管理默认配置并移除无用接口
|
|
194
|
+
- **样式处理:** 统一处理自定义样式逻辑并修复代码格式
|
|
195
|
+
- 将nameKey重命名为textKey以提高语义清晰度
|
|
196
|
+
- 更新依赖项并优化类型导出结构
|
|
197
|
+
- **core:** 重构DomPoint和MapBaseLayers类,优化代码结构和功能
|
|
198
|
+
|
|
199
|
+
### 📝 Documentation
|
|
200
|
+
|
|
201
|
+
- 添加详细模块文档并更新发布配置
|
|
202
|
+
- update README with branch strategy and add migration guide
|
|
203
|
+
|
|
204
|
+
All notable changes to this project will be documented in this file.
|
|
205
|
+
|
package/core/Point.js
CHANGED
|
@@ -153,8 +153,11 @@ export default class Point {
|
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
const pointFeature = new Feature({
|
|
156
|
+
type: options.layerName,
|
|
157
|
+
layerName: options.layerName,
|
|
156
158
|
geometry: new olPoint([item.lgtd, item.lttd]),
|
|
157
159
|
name: options.textKey ? item[options.textKey] : '',
|
|
160
|
+
rawData: item,
|
|
158
161
|
});
|
|
159
162
|
pointFeatureList.push(pointFeature);
|
|
160
163
|
});
|
|
@@ -170,7 +173,15 @@ export default class Point {
|
|
|
170
173
|
layerName: options.layerName,
|
|
171
174
|
source: clusterSource,
|
|
172
175
|
style: (feature) => {
|
|
173
|
-
|
|
176
|
+
if (options.style) {
|
|
177
|
+
if (typeof options.style === 'function') {
|
|
178
|
+
return options.style(feature);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return options.style;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const name = feature.get('features')[0].get('name');
|
|
174
185
|
return this.createClusterStyle(options, name);
|
|
175
186
|
},
|
|
176
187
|
zIndex: options.zIndex || ConfigManager.DEFAULT_CLUSTER_OPTIONS.zIndex,
|
|
@@ -276,7 +287,6 @@ export default class Point {
|
|
|
276
287
|
anchors,
|
|
277
288
|
remove: () => {
|
|
278
289
|
anchors.forEach(anchor => {
|
|
279
|
-
console.log('Removing overlay:', anchor);
|
|
280
290
|
const element = anchor.getElement();
|
|
281
291
|
if (element) {
|
|
282
292
|
element.remove();
|