vue-leaflet/Vue2Leaflet

The judgment statement may need to be corrected

coderSang opened this issue · 1 comments

Steps to Reproduce

in src/components/LPopup.vue
we had declare props data latLng default []
latLng: {
type: [Object, Array],
default: () => [],
},
but when components mounted we use
if (this.latLng !== undefined) {
this.mapObject.setLatLng(this.latLng);
}
to judge if we give a latLng
i think it maybe?
if (this.latLng.length > 0) {
this.mapObject.setLatLng(this.latLng);
}

Expected Results

Actual Results

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: vX.X.X
  • Vue: vX.X.X
  • Vue2Leaflet: latest
stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.