cd-mapgis 1.1.8 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/PointLayer.js CHANGED
@@ -42,7 +42,7 @@ export default class PointLayer {
42
42
  geometry: new Point(p.point)
43
43
  });
44
44
  let styleParam = {};
45
- if (styleParam.img) {
45
+ if (p.img) {
46
46
  styleParam.image = new Icon({
47
47
  src: p.img, // 外部图标路径
48
48
  scale: 1, // 缩放比例
@@ -52,7 +52,7 @@ export default class PointLayer {
52
52
  anchorYUnits: 'fraction'
53
53
  });
54
54
  }
55
- if (styleParam.text) {
55
+ if (p.text) {
56
56
  let font = p.font ? p.font : 'bold 20px 宋体';
57
57
  let corlor = p.corlor ? p.corlor : '#0619e9';
58
58
  let offsetY = p.offsetY ? p.offsetY : -10;