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 +1 -0
- package/core/VueTemplatePoint.js +2 -2
- package/package.json +1 -1
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));
|
package/core/VueTemplatePoint.js
CHANGED
|
@@ -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,
|