vue-geojson-view-ts 1.3.6 → 1.3.8

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": "vue-geojson-view-ts",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -152,6 +152,7 @@ export default defineComponent({
152
152
  iconUrl: "/image/gmap01.png",
153
153
  iconSize: [25, 41],
154
154
  iconAnchor: [12, 41],
155
+ scale: 1,
155
156
  class: "",
156
157
  type: "image",
157
158
  },
@@ -198,6 +199,7 @@ export default defineComponent({
198
199
  },
199
200
  methods: {
200
201
  changeTypeMap(type: string) {
202
+ this.type = type;
201
203
  if (type === "0") {
202
204
  this.heatLayer.setVisible(true);
203
205
  this.pointLayer.setVisible(false);
@@ -257,12 +259,13 @@ export default defineComponent({
257
259
  const zIndex: any = 1;
258
260
  const iconStyle = new Style({
259
261
  image: new Icon({
260
- opacity: 1,
262
+ // opacity: 1,
261
263
  src: this.configurationMap?.iconMarker?.iconUrl,
262
264
  color: this.configurationMap.iconMarker?.color,
263
- // img: this.configurationMap.iconMarker.image,
264
- width: this.configurationMap?.iconMarker.iconSize[0],
265
- height: this.configurationMap?.iconMarker.iconSize[1],
265
+ scale: this.configurationMap.iconMarker.scale,
266
+ // // img: this.configurationMap.iconMarker.image,
267
+ // width: this.configurationMap?.iconMarker.iconSize[0],
268
+ // height: this.configurationMap?.iconMarker.iconSize[1],
266
269
  }),
267
270
  zIndex: zIndex,
268
271
  });
@@ -327,6 +330,7 @@ export default defineComponent({
327
330
  return false;
328
331
  },
329
332
  async onClickListener(event: any) {
333
+ this.changeTypeMap("1");
330
334
  const content: any = document.getElementById("popup-content");
331
335
  const closer: any = document.getElementById("popup-closer");
332
336