vue-leaflet / Vue2Leaflet

Vue 2 components for Leaflet maps
https://vue2-leaflet.netlify.app
MIT License
1.96k stars 380 forks source link

The judgment statement may need to be corrected #702

Closed coderSang closed 2 years ago

coderSang commented 2 years ago

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

Versions

stale[bot] commented 2 years ago

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.