my-openlayer 2.1.7 → 2.1.9

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/core/Point.js CHANGED
@@ -118,6 +118,7 @@ export default class Point {
118
118
  const pointFeature = new Feature({
119
119
  rawData: item,
120
120
  type: options.layerName,
121
+ layerName: options.layerName,
121
122
  geometry: new olPoint([item.lgtd, item.lttd])
122
123
  });
123
124
  pointFeature.setStyle(this.createPointStyle(options, item));
@@ -96,10 +96,10 @@ export default class VueTemplatePoint {
96
96
  lgtd: pointData.lgtd,
97
97
  lttd: pointData.lttd,
98
98
  props: {
99
- pointData: {
99
+ pointData: isVue3 ? {
100
100
  type: Object,
101
101
  default: pointData
102
- }
102
+ } : pointData
103
103
  },
104
104
  positioning: options?.positioning,
105
105
  stopEvent: options?.stopEvent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "my-openlayer",
3
3
  "private": false,
4
- "version": "2.1.7",
4
+ "version": "2.1.9",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",